aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-01-30 15:08:50 -0400
committerJoey Hess <joey@kitenet.net>2012-01-30 15:09:37 -0400
commita78126c55ecbe014ab2a214f324b32762e6a268d (patch)
treeb8f128ff730f79d9573a867f8af880e0230f0903 /doc/bugs
parent0ba0d0982455297446ed777aa89d1fbf8989d2ae (diff)
downloadikiwiki-a78126c55ecbe014ab2a214f324b32762e6a268d.tar
ikiwiki-a78126c55ecbe014ab2a214f324b32762e6a268d.tar.gz
calendar, prettydate: Fix strftime encoding bug
strftime is a C function, it does not return decoded utf8. Several places in ikiwiki manually decoded it, but at least two forgot to. Also, strftime might not return even encoded utf8, if LC_TIME is set to a non-utf8 value. Went ahead and supported decoding whatever encoding it uses. The remaining direct calls to strftime() are all ones that first set LC_TIME=C, in order to get times that are not for human display.
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/Encoding_problem_in_calendar_plugin.mdwn4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/bugs/Encoding_problem_in_calendar_plugin.mdwn b/doc/bugs/Encoding_problem_in_calendar_plugin.mdwn
index 2ccc43c03..80e9f2c82 100644
--- a/doc/bugs/Encoding_problem_in_calendar_plugin.mdwn
+++ b/doc/bugs/Encoding_problem_in_calendar_plugin.mdwn
@@ -11,6 +11,10 @@ The problem is that I do not know Perl, encoding is one of the thing I would be
Cheers,
Louis
+> Yes, this seems basically right. I've applied a modified version of this.
+> [[done]]
+> --[[Joey]]
+
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm
index c7d2b7c..1345939 100644