Alexander Belopolsky <belopol...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue8957> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com