[carton] 118/472: Fix UTF8 warnings in encoding JSON
Lucas Kanashiro
kanashiro-guest at moszumanska.debian.org
Fri Jul 24 00:38:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
kanashiro-guest pushed a commit to branch master
in repository carton.
commit af798e0c201357031f7ee3d2fbf9507a50f1da72
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date: Fri Oct 14 06:56:38 2011 +0900
Fix UTF8 warnings in encoding JSON
---
lib/Carton/Util.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Carton/Util.pm b/lib/Carton/Util.pm
index 3e54313..501b150 100644
--- a/lib/Carton/Util.pm
+++ b/lib/Carton/Util.pm
@@ -24,7 +24,7 @@ sub from_json {
sub to_json {
my($data) = @_;
require JSON;
- JSON->new->pretty->canonical->encode($data);
+ JSON->new->utf8->pretty->canonical->encode($data);
}
1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/carton.git
More information about the Pkg-perl-cvs-commits
mailing list