]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Support YAML::XS by not passing decoded unicode to Load. Closes: #625713
authorJoey Hess <joey@kitenet.net>
Thu, 12 May 2011 21:50:25 +0000 (17:50 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 12 May 2011 21:50:25 +0000 (17:50 -0400)
IkiWiki/Setup/Yaml.pm
debian/changelog
debian/control
doc/bugs/yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn

index 904784728e0a0cbc6314cf26006010b5e5d25d8a..6da93bb644bb5f639dd6871b492782cfa059345d 100644 (file)
@@ -5,6 +5,7 @@ package IkiWiki::Setup::Yaml;
 use warnings;
 use strict;
 use IkiWiki;
+use Encode;
 
 sub loaddump ($$) {
        my $class=shift;
@@ -14,7 +15,7 @@ sub loaddump ($$) {
        eval q{use YAML} if $@;
        die $@ if $@;
        $YAML::Syck::ImplicitUnicode=1;
-       IkiWiki::Setup::merge(Load($content));
+       IkiWiki::Setup::merge(Load(encode_utf8($content)));
 }
 
 sub gendump ($@) {
index 9765d5a3e960daa8ae1c9acfa33f5816a6d6a460..e89042e9fd3017ebfc2f59ec2294d87de4449167 100644 (file)
@@ -3,9 +3,7 @@ ikiwiki (3.20110431) UNRELEASED; urgency=low
   * Danish translation update. Closes: #625721
   * Danish underlay translation update. Closes: #625765
     (Thanks, Jonas Smedegaard)
-  * Add conflict with libyaml-libyaml-perl, since that library does
-    not support utf8. Closes: #625713
-    (see https://rt.cpan.org/Public/Bug/Display.html?id=54683)
+  * Support YAML::XS by not passing decoded unicode to Load. Closes: #625713
   * openid, aggregate, pinger: Use Net::INET6Glue if available to
     support making ipv6 connections. (Note that if LWPx::ParanoidAgent
     is installed, it defeats this for openid.)
index c7d7e6544ffcf445963690aa6ede4b2c438017a5..202f82db69527c78dbca8aa6e5187f44be2b5c63 100644 (file)
@@ -39,7 +39,7 @@ Suggests: viewvc | gitweb | viewcvs, libsearch-xapian-perl,
   libsparkline-php, texlive, dvipng, libtext-wikicreole-perl,
   libsort-naturally-perl, libtext-textile-perl, libhighlight-perl,
   po4a (>= 0.35-1), gettext, libnet-inet6glue-perl
-Conflicts: ikiwiki-plugin-table, libyaml-libyaml-perl
+Conflicts: ikiwiki-plugin-table
 Replaces: ikiwiki-plugin-table
 Provides: ikiwiki-plugin-table
 Description: a wiki compiler
index e9ae1883a3dcaa3ce7ad8cd3bb8b87f48baba8c1..f5e86f65f64e217c5298c2a678348ff17ca13e15 100644 (file)
@@ -98,3 +98,5 @@ preferred one?
 >>>>>>>> "try to support every single YAML Perl module and end up
 >>>>>>>> conflicting with the now recommended one" nightmare.
 >>>>>>>> --[[intrigeri]]
+
+>>>>>>>>> Ok, [[done]] (although YAML::Syck does also still work.) --[[Joey]]