[issue12443] locale.setlocale(locale.LC_ALL, locale.getlocale()) fails for some locales

2011-06-29 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone invalid@example.invalid: Consider this transcript from OS X 10.6: import locale locale.getlocale() (None, None) locale.setlocale(locale.LC_ALL, _) 'C' locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') 'en_US.UTF-8' locale.getlocale() ('en_US', 'UTF8')

[issue12443] locale.setlocale(locale.LC_ALL, locale.getlocale()) fails for some locales

2011-06-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Good news: it's a duplicate and it's already fixed! See issues #10090 and #10154. The fix is part of Python 3.1.4 (released the 12th june 2011) and Python 2.7.2 (released the 12 june 2011), and will be part of Python 3.2.1.

[issue12443] locale.setlocale(locale.LC_ALL, locale.getlocale()) fails for some locales

2011-06-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: (Python 2.6 only accepts security fixes, no more bug fixes. It's time to upgrade to 2.7!) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12443