From dfedb0351d154cd1d58e719012f4b1dda3a07666 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 15 Sep 2006 17:10:53 +0000 Subject: * Patch from Recai to fix a wide character warning from the search plugin during setup if the wikiname contains utf8. --- IkiWiki/Plugin/search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index 4ae9d7283..2d8c3d4e1 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -79,7 +79,7 @@ sub estcfg () { #{{{ my $estdir="$config{wikistatedir}/hyperestraier"; my $cgi=IkiWiki::basename($config{cgiurl}); $cgi=~s/\..*$//; - open(TEMPLATE, ">$estdir/$cgi.tmpl") || + open(TEMPLATE, ">:utf8", "$estdir/$cgi.tmpl") || error("write $estdir/$cgi.tmpl: $!"); print TEMPLATE IkiWiki::misctemplate("search", "\n\n\n\n\n\n", -- cgit v1.2.3