Re: ValueError: unknown locale: UTF-8
- From: Arnaud Delobelle <arnodel@xxxxxxxxxxxxxx>
- Date: Sat, 31 May 2008 13:01:51 +0100
Mario Ruggier <mario@xxxxxxxxxxx> writes:
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.
Traceback (most recent call last):import locale
locale.getdefaultlocale()
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
Works for me (10.5.3):
marigold:~ arno$ uname -srv
Darwin 9.3.0 Darwin Kernel Version 9.3.0: Fri May 23 00:49:16 PDT 2008; root:xnu-1228.5.18~1/RELEASE_I386
marigold:~ arno$ python -c "import locale; print locale.getdefaultlocale()"
('en_GB', 'UTF8')
--
Arnaud
.
- References:
- ValueError: unknown locale: UTF-8
- From: Mario Ruggier
- ValueError: unknown locale: UTF-8
- Prev by Date: Re: How to get all the variables in a python shell
- Next by Date: Re: How to get all the variables in a python shell
- Previous by thread: ValueError: unknown locale: UTF-8
- Index(es):