summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-19 21:23:48 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-19 21:23:48 -0400
commit423fae6f18853bfaa08f647e7e4d10b7587738e0 (patch)
tree031b155706efeba04a0782a00dc7d4183fc24842 /IkiWiki
parent3e992b758b0d7e96f369372340b95d8ef4302aae (diff)
Use the pure perl Data::Dumper when generating setup files to ensure that utf-8 characters are written out as such, and not as the encoded perl strings the C Data::Dumper produces.
Note that the text produced by the C version was interpreted fine when ikiwiki loaded the setup file. But it was not user-friendly.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Setup/Standard.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm
index 92f887f0c..e6bff2826 100644
--- a/IkiWiki/Setup/Standard.pm
+++ b/IkiWiki/Setup/Standard.pm
@@ -26,6 +26,8 @@ sub dumpline ($$$$) { #{{{
local $Data::Dumper::Pad="\t";
local $Data::Dumper::Sortkeys=1;
local $Data::Dumper::Quotekeys=0;
+ # only the perl version preserves utf-8 in output
+ local $Data::Dumper::Useperl=1;
my $dumpedvalue;
if (($type eq 'boolean' || $type eq 'integer') && $value=~/^[0-9]+$/) {