This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients ggenellina, lemburg, loewis, santhosh.thottingal, sdaoden, skrah, vstinner
Date 2011-04-04.10:56:27
SpamBayes Score 3.228521e-08
Marked as misclassified No
Message-id <4D99A3A3.8080807@egenix.com>
In-reply-to <1301861487.73.0.245870526894.issue6895@psf.upfronthosting.co.za>
Content
Stefan Krah wrote:
> 
> Stefan Krah <stefan-usenet@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 ?
History
Date User Action Args
2011-04-04 10:56:30lemburgsetrecipients: + lemburg, loewis, ggenellina, vstinner, skrah, santhosh.thottingal, sdaoden
2011-04-04 10:56:27lemburglinkissue6895 messages
2011-04-04 10:56:27lemburgcreate