locale on cygwin

Oleg Broytmann phd at phd.pp.ru
Fri Feb 1 04:32:41 EST 2002


On Fri, Feb 01, 2002 at 08:31:43PM +1100, Andy Todd wrote:
>  >>> locale.setlocale(locale.LC_ALL, '')
> Traceback (most recent call last):
>    File "<stdin>", line 1, in ?
>    File "/usr/lib/python2.1/locale.py", line 374, in setlocale
>      return _setlocale(category, locale)
> locale.Error: locale setting not supported
>  >>>
> angua:/home/andy47# echo $LANG
> en_AU
> angua:/home/andy47#

   On lInux this means your system lacks files for en_AU locale. It is not
Python fault. Use different locale, en_EN or any that exists on the system.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list