New submission from Alexander Belopolsky <belopol...@users.sourceforge.net>:
$ 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'. ---------- components: Library (Lib) messages: 118567 nosy: belopolsky priority: normal severity: normal stage: unit test needed status: open title: python -m locale fails on OSX type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10090> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com