[issue5997] strftime is broken
R. David Murray
report at bugs.python.org
Mon May 11 21:52:43 CEST 2009
R. David Murray <rdmurray at bitdance.com> added the comment:
Please read
http://docs.python.org/library/locale.html
specifically the docs for 'setlocale'. Before you call setlocale,
python's locale is 'C', just like for any C program before it calls
setlocale.
Python 2.6.2 (r262:71600, May 2 2009, 15:06:57)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> import time
>>> time.strftime("%x")
'05/11/09'
>>> locale.setlocale(locale.LC_ALL,"")
'tr_TR.utf-8'
>>> time.strftime("%x")
'11-05-2009'
----------
nosy: +r.david.murray
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5997>
_______________________________________
More information about the Python-bugs-list
mailing list