fix unicode with YAML::Syck
Syck-- it doesn't use unicode by default?! Hello, 2010 calling..master
parent
eb06a01355
commit
0219529699
|
@ -13,6 +13,7 @@ sub loaddump ($$) {
|
||||||
eval q{use YAML::Any};
|
eval q{use YAML::Any};
|
||||||
eval q{use YAML} if $@;
|
eval q{use YAML} if $@;
|
||||||
die $@ if $@;
|
die $@ if $@;
|
||||||
|
$YAML::Syck::ImplicitUnicode=1;
|
||||||
IkiWiki::Setup::merge(Load($content));
|
IkiWiki::Setup::merge(Load($content));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@ sub getconfig () {
|
||||||
}
|
}
|
||||||
eval q{use YAML::Any};
|
eval q{use YAML::Any};
|
||||||
eval q{use YAML} if $@;
|
eval q{use YAML} if $@;
|
||||||
|
$YAML::Syck::ImplicitUnicode=1;
|
||||||
die $@ if $@;
|
die $@ if $@;
|
||||||
$config{$var}=Load($val."\n");
|
$config{$var}=Load($val."\n");
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue