[libcatmandu-rdf-perl] 10/20: Fixing type
Jonas Smedegaard
dr at jones.dk
Sat Oct 28 03:10:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag upstream/0.32
in repository libcatmandu-rdf-perl.
commit ddbdb125de5ff9cb9f79d4a8c5e238abdc1fcccf
Author: Patrick Hochstenbach <patrick.hochstenbach at ugent.be>
Date: Sat Jul 29 10:55:25 2017 +0200
Fixing type
---
lib/Catmandu/Importer/RDF.pm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/Catmandu/Importer/RDF.pm b/lib/Catmandu/Importer/RDF.pm
index 8959606..b71b06d 100644
--- a/lib/Catmandu/Importer/RDF.pm
+++ b/lib/Catmandu/Importer/RDF.pm
@@ -283,6 +283,8 @@ sub _aref_stream {
# parent
$pipe->reader();
+ binmode($pipe,':encoding(UTF-8)');
+
return sub {
state $line = <$pipe>;
@@ -297,13 +299,15 @@ sub _aref_stream {
# child
$pipe->writer();
+ binmode($pipe,':encoding(UTF-8)');
+
my $handler = sub {
my $triple = shift;
my $subject = $triple->subject->value;
my $predicate = $triple->predicate->value;
my $value = $triple->object->is_literal ? $triple->object->literal_value : $triple->object->uri_value;
- my $type = $triple->object->type;
+ my $type = lc $triple->object->type;
my $lang = $triple->object->is_literal ? $triple->object->literal_value_language : undef;
my $datatype = $triple->object->is_literal ? $triple->object->literal_datatype : undef;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-rdf-perl.git
More information about the Pkg-perl-cvs-commits
mailing list