]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki.in
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[git.ikiwiki.info.git] / ikiwiki.in
index 7028bdb7d99d098175ed772060946bfc24023a4c..acd37f8026c1a2a9ab076a877358617e9e20435e 100755 (executable)
@@ -44,7 +44,8 @@ sub getconfig () {
                        "wrappergroup=s" => \$config{wrappergroup},
                        "usedirs!" => \$config{usedirs},
                        "prefix-directives!" => \$config{prefix_directives},
-                       "getctime" => \$config{getctime},
+                       "getctime" => \$config{gettime},
+                       "gettime!" => \$config{gettime},
                        "numbacklinks=i" => \$config{numbacklinks},
                        "rcs=s" => \$config{rcs},
                        "no-rcs" => sub { $config{rcs}="" },
@@ -102,8 +103,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";