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

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky 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 d

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

2011-01-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2011-01-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > time.strptime(s, '%c' ) ? Oh my. It certainly took a long time to recognize a silly mistake! Thanks. -- dependencies: -Use locale.nl_langinfo in _strptime resolution: -> invalid ___ Python tracker

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

2011-01-11 Thread Roumen Petrov
Roumen Petrov added the comment: time.strptime(s, '%c' ) ? -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-01-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor, You may be interested because your native language is implicated. :-) -- nosy: +haypo ___ Python tracker ___

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

2011-01-10 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Adding #8915 as a dependency because deducing D_T_FMT locale setting from strftime output seems impossible: >>> locale.nl_langinfo(locale.D_T_FMT) '%a %b %e %H:%M:%S %Y' -- dependencies: +Use locale.nl_langinfo in _strptime versions: +Python 3.3

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

2010-06-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-06-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17602/strptime-locale-bug.py ___ Python tracker ___ ___ Python-bugs-li

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

2010-06-09 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The following code: import locale, time locale.setlocale(locale.LC_ALL, "fr_FR.UTF-8") t = time.localtime() s = time.strftime('%c', t) time.strptime('%c', s) Raises ValueError: time data '%c' does not match format 'Mer 9 jui 16:14:46 2010' in any lo