[issue8957] strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale

Alexander Belopolsky report at bugs.python.org
Wed Jan 12 01:08:43 CET 2011


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

My tests were wrong but the problem does exist.  I am attaching a script that tests strptime(.., '%c') for all locales installed on my system (an unmodified  US Mac OS X 10.6.6).  

The only failing locale that I recognize is Hebrew (he_IL).  Eli, what do you think about this?

 
$ ./python.exe cfmt.py 
am_ET [ማክሰ ጃንዩ 11 18:56:18 2011] %A %B %d %H:%M:%S %Y != %a %b %e %H:%M:%S %Y
et_EE [T, 11. jaan  2011. 18:56:18] %a, %d. %B %Y. %H:%M:%S != %a, %d. %b %Y. %T
he_IL [EST 18:56:18 2011 ינו 11 ג'] %Z %H:%M:%S %Y %B %d %a != %Z %H:%M:%S %Y %b %d %a

----------
dependencies: +Use locale.nl_langinfo in _strptime
nosy: +eli.bendersky
resolution: invalid -> 
status: closed -> open
Added file: http://bugs.python.org/file20358/cfmt.py

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


More information about the Python-bugs-list mailing list