This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients barry-scott, ezio.melotti, pitrou
Date 2009-05-02.15:08:12
SpamBayes Score 6.868826e-08
Marked as misclassified No
Message-id <>
Same thing here (Linux) with a non-utf8 locale:

>>> locale.setlocale(locale.LC_TIME, "fr_FR.UTF-8")
>>> time.strftime("%B", time.strptime("2009-12-01", "%Y-%m-%d"))
>>> locale.setlocale(locale.LC_TIME, "fr_FR.ISO8859-15")
>>> time.strftime("%B", time.strptime("2009-12-01", "%Y-%m-%d"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/antoine/py3k/__svn__/Lib/", line 461, in
    return _strptime(data_string, format)[0]
  File "/home/antoine/py3k/__svn__/Lib/", line 307, in _strptime
    _TimeRE_cache = TimeRE()
  File "/home/antoine/py3k/__svn__/Lib/", line 188, in __init__
    self.locale_time = LocaleTime()
  File "/home/antoine/py3k/__svn__/Lib/", line 72, in __init__
  File "/home/antoine/py3k/__svn__/Lib/", line 98, in
    a_month = [calendar.month_abbr[i].lower() for i in range(13)]
  File "/home/antoine/py3k/__svn__/Lib/", line 98, in <listcomp>
    a_month = [calendar.month_abbr[i].lower() for i in range(13)]
  File "/home/antoine/py3k/__svn__/Lib/", line 60, in __getitem__
    return funcs(self.format)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3:
invalid data
Date User Action Args
2009-05-02 15:08:16pitrousetrecipients: + pitrou, barry-scott, ezio.melotti
2009-05-02 15:08:15pitrousetmessageid: <>
2009-05-02 15:08:14pitroulinkissue5903 messages
2009-05-02 15:08:12pitroucreate