fix unicode with YAML::Syck

Syck-- it doesn't use unicode by default?! Hello, 2010 calling..
master
Joey Hess 2010-03-24 16:19:50 -04:00
parent eb06a01355
commit 0219529699
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ sub loaddump ($$) {
eval q{use YAML::Any};
eval q{use YAML} if $@;
die $@ if $@;
$YAML::Syck::ImplicitUnicode=1;
IkiWiki::Setup::merge(Load($content));
}

View File

@ -103,6 +103,7 @@ sub getconfig () {
}
eval q{use YAML::Any};
eval q{use YAML} if $@;
$YAML::Syck::ImplicitUnicode=1;
die $@ if $@;
$config{$var}=Load($val."\n");
},