diff options
author | Antoine Beaupré <anarcat@koumbit.org> | 2013-09-07 18:50:53 -0400 |
---|---|---|
committer | Antoine Beaupré <anarcat@koumbit.org> | 2013-11-29 01:09:04 -0500 |
commit | 2a143bfd0be3f286249a19304bb908e3b0d63cc1 (patch) | |
tree | a46c68a3aad8cac2a45542c67c3fdd41f81b7621 /IkiWiki.pm | |
parent | 9293d2c7064c7c6aafb84ef2351396c68f3b9551 (diff) | |
download | ikiwiki-2a143bfd0be3f286249a19304bb908e3b0d63cc1.tar ikiwiki-2a143bfd0be3f286249a19304bb908e3b0d63cc1.tar.gz |
don't edit config setting, but a temporary variable, complete and unbreak tests
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 2c0b1153c..86c850811 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -740,7 +740,10 @@ sub log_message ($$) { $log_open=1; } eval { - Sys::Syslog::syslog($type, "[$config{wikiname}] %s", join(" ", @_)); + # keep a copy to avoid editing the original config repeatedly + my $wikiname = $config{wikiname}; + utf8::encode($wikiname); + Sys::Syslog::syslog($type, "[$wikiname] %s", join(" ", @_)); }; if ($@) { print STDERR "failed to syslog: $@" unless $log_failed; |