strftime uses locale-dependant encoding
|Reported by:||Owned by:||Christopher Lenz|
|Severity:||normal||Keywords:||strftime locale encoding|
Throughout trac, strftime is used to format dates/times. The user has however no control over what encoding strftime returns it string in since that is a feature of the underlying C-library. In most cases, the default encoding for the current locale is used.
I use UTF-8 for my trac deployment since that is most compatible with strings from the Subversion system. Dates are however always returned in latin1 encoding since my loacle is latin1-based (there is no utf8 encoding for IS locale available yet).
Trac should centralize date/time formatting in a single module wrapping strftime and friends, and ensure that the formatted dates are returned with the right encoding. I think this would also make date/time formatting more flexible and easy to manipulate by the user, and beneficial for other things as well.