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


Groups > comp.lang.python > #28206 > unrolled thread

Re: why i can't set locale?

Started byPeter Otten <__peter__@web.de>
First post2012-09-01 08:10 +0200
Last post2012-09-01 08:10 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#28206 — Re: why i can't set locale?

FromPeter Otten <__peter__@web.de>
Date2012-09-01 08:10 +0200
SubjectRe: why i can't set locale?
Message-ID<mailman.26.1346479853.27098.python-list@python.org>
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")

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web