[New-bugs-announce] [issue5948] setlocale regression

Kerfred report at bugs.python.org
Wed May 6 15:22:55 CEST 2009

New submission from Kerfred <fgilles at index-education.fr>:

There is a regression bug between Python 2.5 and Python 2.6.

With Python 2.5, the following code works:
import locale
locale.setlocale(locale.LC_ALL, 'fr')

Whereas with Python 2.6, I get this message:
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:\Python26\Lib\locale.py", line 513, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting

I am using Python 2.6.2 on Windows XP 32 bits.


components: Library (Lib)
messages: 87331
nosy: Kerfred
severity: normal
status: open
title: setlocale regression
type: crash
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list