[issue5249] Fix strftime on windows.

Martin v. Löwis report at bugs.python.org
Sat Feb 14 08:42:21 CET 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

> On VC6, wcsftime simply converts *format* to mbcs string, calls
> strftime, and converts result to unicode, so there is no difference
> between my patch and wcsftime.

Right.

> (Newer VC's wcsftime might have different
> implementation though) Maybe you are concerning about the cost of extra
> unicode object creation on non-windows platform? 

No. I'm concerned primarily about code cleanliness, by relying on
library code rather than implementing stuff ourselves.

OTOH, the conversion to narrow strings still needs to happen on Unix
(and probably needs to use the locale's encoding, not UTF-8), so
a uniform treatment also has a value.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5249>
_______________________________________


More information about the Python-bugs-list mailing list