peircej / jbrout

Automatically exported from code.google.com/p/jbrout
0 stars 0 forks source link

locale.Error: unsupported locale setting (on windows 7) #201

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.installing python 2.7 (32 bits)
2.Installing pygtk all in one 2.24 (32 bits)
3.Lauching jbrout (3.340 source tgz)

Traceback (most recent call last):
  File ".\jbrout.py", line 43, in <module>
    locale.setlocale(locale.LC_ALL, '.'.join(locale.getdefaultlocale()))
  File "c:\usr\python27\lib\locale.py", line 531, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

python
import locale
print locale.getdefaultlocale()
('fr_FR', 'cp1252')

Original issue reported on code.google.com by sylvain....@gmail.com on 2 May 2012 at 6:26

GoogleCodeExporter commented 8 years ago

Original comment by matej.c...@gmail.com on 12 Aug 2013 at 10:34

GoogleCodeExporter commented 8 years ago
What does

locale.setlocale(locale.LC_ALL)

gives you (which is the current state of jbrout.py after r350)?

Original comment by matej.c...@gmail.com on 28 Aug 2013 at 1:56

GoogleCodeExporter commented 8 years ago
And it is most likely a duplicate of #214 (which is probably duplicate of 
something else as well).

Original comment by matej.c...@gmail.com on 28 Aug 2013 at 1:57