Message132932
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 ? |
|
Date |
User |
Action |
Args |
2011-04-04 10:56:30 | lemburg | set | recipients:
+ lemburg, loewis, ggenellina, vstinner, skrah, santhosh.thottingal, sdaoden |
2011-04-04 10:56:27 | lemburg | link | issue6895 messages |
2011-04-04 10:56:27 | lemburg | create | |
|