Unknown locale nb_NO ?

S

Stas Z

Hello,

Just noticed that the locale 'nb_NO' is not supported in Python?!

stas@mobi:~$ locale
LANG=nb_NO
[...]

stas@mobi:~$ python
Python 2.3.4 (#2, Sep 24 2004, 08:39:09)
[GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/locale.py", line 346, in getdefaultlocale
return _parse_localename(localename)
File "/usr/lib/python2.3/locale.py", line 280, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: nb_NO
Any help would appreciated.

Thanks,
Stas
 
O

Ola Natvig

Stas said:
Hello,

Just noticed that the locale 'nb_NO' is not supported in Python?!

stas@mobi:~$ locale
LANG=nb_NO
[...]

stas@mobi:~$ python
Python 2.3.4 (#2, Sep 24 2004, 08:39:09)
[GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/locale.py", line 346, in getdefaultlocale
return _parse_localename(localename)
File "/usr/lib/python2.3/locale.py", line 280, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: nb_NO


Any help would appreciated.

Thanks,
Stas

I believe the standard locale for "Norsk bokmål" is 'no_NO'. You could
try that.

Ola
 
S

Stas Z

Stas said:
Hello,

Just noticed that the locale 'nb_NO' is not supported in Python?!
[...]
I believe the standard locale for "Norsk bokmål" is 'no_NO'. You could
try that.
When I 'googled' for it, I saw that no_NO has become nn_NO/nb_NO.
However it strikes me as odd, that Python2.3.4 raises an exception when
querying for a valid locale. I tend to call it a bug :-(

Stas
 
R

Richard Brodie

Stas Z said:
However it strikes me as odd, that Python2.3.4 raises an exception when
querying for a valid locale. I tend to call it a bug :-(

File one in the bug tracker, then, and it might get fixed.
 
D

Denis S. Otkidach

When I 'googled' for it, I saw that no_NO has become nn_NO/nb_NO.
However it strikes me as odd, that Python2.3.4 raises an exception when
querying for a valid locale. I tend to call it a bug :-(

Is it valid? Have you tried "locale -a | grep nb_NO"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top