sub displaytime ($) { #{{{
my $time=shift;
- if ($config{timeformat} eq '%c') {
+ if ($config{timeformat} eq '%c' && ! exists $ENV{LC_CTIME}) {
return scalar(localtime($time)); # optimisation
}
else {
for a page not being an orphan.
* Support pinging services such as Technorati using XML-RPC to notify them
about changes to rss feeds.
+ * Honor LC_CTIME when formatting a time for display. Thanks, Faidon
+ Liambotis.
- -- Joey Hess <joeyh@debian.org> Mon, 26 Jun 2006 20:41:45 -0400
+ -- Joey Hess <joeyh@debian.org> Sat, 1 Jul 2006 20:28:26 -0400
ikiwiki (1.7) unstable; urgency=low
--- /dev/null
+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.