Support YAML::XS by not passing decoded unicode to Load. Closes: #625713

master
Joey Hess 2011-05-12 17:50:25 -04:00
parent 0c71184c42
commit 97a8d30dc1
4 changed files with 6 additions and 5 deletions

View 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 ($@) {

4
debian/changelog vendored
View 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.)

2
debian/control vendored
View 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

View 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]]