From b85ca8603aecbd3523201d99edf019db1094b558 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 16 Nov 2010 14:24:15 -0400 Subject: websetup: Fix encoding problem when restoring old setup file. --- IkiWiki/Plugin/websetup.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') 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). '

'; open(OUT, ">", $config{setupfile}) || error("$config{setupfile}: $!"); - print OUT $oldsetup; + print OUT Encode::encode_utf8($oldsetup); close OUT; } -- cgit v1.2.3