From: Joey Hess Date: Thu, 12 May 2011 21:50:25 +0000 (-0400) Subject: Support YAML::XS by not passing decoded unicode to Load. Closes: #625713 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=97a8d30dc1e7928253d55d12d372c0769683a865;p=ikiwiki.git Support YAML::XS by not passing decoded unicode to Load. Closes: #625713 --- diff --git a/IkiWiki/Setup/Yaml.pm b/IkiWiki/Setup/Yaml.pm index 904784728..6da93bb64 100644 --- a/IkiWiki/Setup/Yaml.pm +++ b/IkiWiki/Setup/Yaml.pm @@ -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 ($@) { diff --git a/debian/changelog b/debian/changelog index 9765d5a3e..e89042e9f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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.) diff --git a/debian/control b/debian/control index c7d7e6544..202f82db6 100644 --- a/debian/control +++ b/debian/control @@ -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 diff --git a/doc/bugs/yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn b/doc/bugs/yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn index e9ae1883a..f5e86f65f 100644 --- a/doc/bugs/yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn +++ b/doc/bugs/yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn @@ -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]]