]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki.in
optimization: pagespec_match_list with no num limit matches before sorting
[git.ikiwiki.info.git] / ikiwiki.in
index 7028bdb7d99d098175ed772060946bfc24023a4c..38e4d320164ab40aed682ece22c3bdfd1aed8d34 100755 (executable)
@@ -102,8 +102,10 @@ sub getconfig () {
                                        die gettext("usage: --set-yaml var=value"), "\n";
                                }
                                eval q{use YAML::Any};
+                               eval q{use YAML} if $@;
                                die $@ if $@;
-                               $config{$var}=Load($val);
+                               eval q{$YAML::Syck::ImplicitUnicode=1};
+                               $config{$var}=Load($val."\n");
                        },
                        "version" => sub {
                                print "ikiwiki version $IkiWiki::version\n";