Antoine Pitrou <pit...@free.fr> added the comment: Well, it turns out that strftime() is buggy as well:
>>> tp = time.strptime("2009-12-01", "%Y-%m-%d") >>> locale.setlocale(locale.LC_TIME, "fr_FR.ISO8859-15") 'fr_FR.ISO8859-15' >>> time.strftime("%B", tp) Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3: invalid data ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5903> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com