ValueError: unknown locale: UTF-8

Mario Ruggier mario at ruggier.org
Sat May 31 06:57:56 EDT 2008


On OS X 10.5.2 :

$ python
Python 2.5.1 (r251:54863, Feb  4 2008, 21:48:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import locale
 >>> locale.getdefaultlocale()
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/locale.py", line 441, in getdefaultlocale
     return _parse_localename(localename)
   File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/locale.py", line 373, in _parse_localename
     raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
 >>>

This is on open bug or is there more to it?

Regards, mario



More information about the Python-list mailing list