aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/utf8_html_templates.mdwn
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-02 00:32:12 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-02 00:32:12 +0000
commit25b35c3c7403202aae19c4a328f6af4d2aae2e68 (patch)
treed0a70746c1e9b6bca4bc5c3fff2921eb722e569e /doc/bugs/utf8_html_templates.mdwn
parent8966b8504c3cedb11ca961c7722af23f0044a89c (diff)
downloadikiwiki-25b35c3c7403202aae19c4a328f6af4d2aae2e68.tar
ikiwiki-25b35c3c7403202aae19c4a328f6af4d2aae2e68.tar.gz
* Honor LC_CTIME when formatting a time for display. Thanks, Faidon
Liambotis.
Diffstat (limited to 'doc/bugs/utf8_html_templates.mdwn')
-rw-r--r--doc/bugs/utf8_html_templates.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/bugs/utf8_html_templates.mdwn b/doc/bugs/utf8_html_templates.mdwn
new file mode 100644
index 000000000..6a3c5661c
--- /dev/null
+++ b/doc/bugs/utf8_html_templates.mdwn
@@ -0,0 +1,16 @@
+HTML::Template does not read files as utf-8, so modifying ikiwiki's
+template files to contain utf-8 won't currently work.
+
+It seems that the best way to fix this would be to make HTML::Template
+support utf-8.
+
+A workaround is to change all the template reading code like this:
+
+ - my $template=HTML::Template->new(blind_cache => 1,
+ - filename => "$config{templatedir}/page.tmpl");
+ + open(TMPL, "<:utf8", "$config{templatedir}/page.tmpl");
+ + my $template=HTML::Template->new(filehandle => *TMPL);
+ + close(TMPL);
+
+However, this will make ikiwiki slower when rebuilding a wiki, since it
+won't cache templates.