aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/websetup.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-11-16 14:24:15 -0400
committerJoey Hess <joey@kitenet.net>2010-11-16 14:24:15 -0400
commitb85ca8603aecbd3523201d99edf019db1094b558 (patch)
treec83a96be5a47e397155ea05d920b55145edca362 /IkiWiki/Plugin/websetup.pm
parent65e726f201d7b9919271cfe7e8a7314a6abf0fc3 (diff)
downloadikiwiki-b85ca8603aecbd3523201d99edf019db1094b558.tar
ikiwiki-b85ca8603aecbd3523201d99edf019db1094b558.tar.gz
websetup: Fix encoding problem when restoring old setup file.
Diffstat (limited to 'IkiWiki/Plugin/websetup.pm')
-rw-r--r--IkiWiki/Plugin/websetup.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm
index 0ab18997c..9c032fdc6 100644
--- a/IkiWiki/Plugin/websetup.pm
+++ b/IkiWiki/Plugin/websetup.pm
@@ -475,7 +475,7 @@ sub showform ($$) {
join(" ", @command), $ret).
'</p>';
open(OUT, ">", $config{setupfile}) || error("$config{setupfile}: $!");
- print OUT $oldsetup;
+ print OUT Encode::encode_utf8($oldsetup);
close OUT;
}