diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-03-24 16:19:50 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-03-24 16:19:50 -0400 |
commit | 021952969933388021001b259462406cbc94c2a6 (patch) | |
tree | eea1510d03fdfe5e3d5761dce7f2836461dd1d10 | |
parent | eb06a0135511fc5b5422f07ca5344ce114402a61 (diff) | |
download | ikiwiki-021952969933388021001b259462406cbc94c2a6.tar ikiwiki-021952969933388021001b259462406cbc94c2a6.tar.gz |
fix unicode with YAML::Syck
Syck-- it doesn't use unicode by default?! Hello, 2010 calling..
-rw-r--r-- | IkiWiki/Setup/Yaml.pm | 1 | ||||
-rwxr-xr-x | ikiwiki.in | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Setup/Yaml.pm b/IkiWiki/Setup/Yaml.pm index 8b876e297..904784728 100644 --- a/IkiWiki/Setup/Yaml.pm +++ b/IkiWiki/Setup/Yaml.pm @@ -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)); } diff --git a/ikiwiki.in b/ikiwiki.in index 1758399ea..b62962ad8 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -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"); }, |