Marc-Andre Lemburg <m...@egenix.com> added the comment:

Stefan Krah wrote:
> 
> Stefan Krah <stefan-use...@bytereef.org> added the comment:
> 
> Is there another (authoritative) source for locale aliases apart
> from X.org? On Ubuntu Lucid, many aliases for installed locales
> are missing:
> 
> f = open("/var/lib/locales/supported.d/local")
> locale_list = [loc.split()[0] for loc in f.readlines() \
>                if not loc.startswith('#')]
> 
> for loc in locale_list:
>     x = locale.setlocale(locale.LC_ALL, loc)
>     try:
>         y = locale.getlocale()
>     except ValueError:
>         print(loc)
> 
> aa_DJ

Hmm, I get:

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

The "local" file you mention only contains "en_US.UTF-8 UTF-8" on
our Ubuntu 10.04.1 default installation.

Have you installed some other package to get support for all those
locales ?

----------
title: locale._parse_localename fails when localename does not contain encoding 
information -> locale._parse_localename fails when localename does not  contain 
encoding information

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6895>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to