Author belopolsky
Recipients belopolsky
Date 2010-10-13.19:33:11
SpamBayes Score 8.71235e-09
Marked as misclassified No
Message-id <1286998392.83.0.0924618610068.issue10090@psf.upfronthosting.co.za>
In-reply-to
Content
$ python -m locale
Locale aliasing:

Locale defaults as determined by getdefaultlocale():
------------------------------------------------------------------------
Language:  en_US
Encoding:  UTF8
..

Locale settings after calling resetlocale():
------------------------------------------------------------------------
Traceback (most recent call last):
 ..

  File "Lib/locale.py", line 548, in resetlocale
    _setlocale(category, _build_localename(getdefaultlocale()))
locale.Error: unsupported locale setting


Apparently the problem is due to locale.getdefaultlocale() returning encoding as 'UTF8' while locale.setlocale() expects 'UTF-8'.
History
Date User Action Args
2010-10-13 19:33:12belopolskysetrecipients: + belopolsky
2010-10-13 19:33:12belopolskysetmessageid: <1286998392.83.0.0924618610068.issue10090@psf.upfronthosting.co.za>
2010-10-13 19:33:11belopolskylinkissue10090 messages
2010-10-13 19:33:11belopolskycreate