]> sipb.mit.edu Git - ikiwiki.git/commitdiff
calendar, prettydate: Fix strftime encoding bug
authorJoey Hess <joey@kitenet.net>
Mon, 30 Jan 2012 19:08:50 +0000 (15:08 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 30 Jan 2012 19:09:37 +0000 (15:09 -0400)
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.


No differences found