Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28206

Re: why i can't set locale?

From Peter Otten <__peter__@web.de>
Subject Re: why i can't set locale?
Date 2012-09-01 08:10 +0200
Organization None
References <CA+YdQ_4KAYdOf8xJtkVxH6gShFXTNwHm7X9cuTxB8474d0zasA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.26.1346479853.27098.python-list@python.org> (permalink)

Show all headers | View raw


contro opinion wrote:

>>>> locale.setlocale(locale.LC_ALL, 'gbk')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.6/locale.py", line 513, in setlocale
>     return _setlocale(category, locale)
> locale.Error: unsupported locale setting

Try picking one of the locales listed by

$ locale -a

(Goggle suggests that you may be looking for "zh_CN.GBK")

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: why i can't set locale? Peter Otten <__peter__@web.de> - 2012-09-01 08:10 +0200

csiph-web