468,537 Members | 2,412 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,537 developers. It's quick & easy.

Unknown locale nb_NO ?

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.
import locale
locale.getdefaultlocale() 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
Jul 18 '05 #1
6 2184
Stas Z wrote:
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.
import locale
locale.getdefaultlocale()


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

--
--------------------------------------
Ola Natvig <ol********@infosense.no>
infoSense AS / development
Jul 18 '05 #2
On Tue, 07 Dec 2004 15:22:00 +0100, Ola Natvig wrote:
Stas Z wrote:
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
Jul 18 '05 #3

"Stas Z" <st**@mobi.tuxhome> wrote in message news:pa****************************@mobi.tuxhome.. .
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.
Jul 18 '05 #4
On Tue, 07 Dec 2004 19:19:42 +0000, Richard Brodie wrote:

"Stas Z" <st**@mobi.tuxhome> wrote in message news:pa****************************@mobi.tuxhome.. .
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.

Indeed, done it.

Stas

Jul 18 '05 #5
On Tue, 07 Dec 2004 17:06:12 +0100
Stas Z <st**@mobi.tuxhome> wrote:
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"?

--
Denis S. Otkidach
http://www.python.ru/ [ru]
Jul 18 '05 #6
On Wed, 08 Dec 2004 10:31:31 +0300, Denis S. Otkidach wrote:
On Tue, 07 Dec 2004 17:06:12 +0100
Stas Z <st**@mobi.tuxhome> wrote:
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"?

It's valid, but I filed it as a bug and it started a small discussion here:
https://sourceforge.net/tracker/inde...70&atid=105470

Jul 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Ksenia Marasanova | last post: by
2 posts views Thread by Jorgen Grahn | last post: by
1 post views Thread by Cagdas Ozgenc | last post: by
6 posts views Thread by Troels Arvin | last post: by
3 posts views Thread by robert | last post: by
2 posts views Thread by Mario Ruggier | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.