[Python-bugs-list] [ python-Bugs-504219 ] locale.setlocale is broken

noreply@sourceforge.net noreply@sourceforge.net
Wed, 16 Jan 2002 03:50:00 -0800


Bugs item #504219, was opened at 2002-01-15 20:56
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504219&group_id=5470

Category: Windows
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Syver Enstad (syvere)
Assigned to: Mark Hammond (mhammond)
Summary: locale.setlocale is broken

Initial Comment:
locale.setlocale doesn't recognize the the format that 
locale.py uses to set the locale, ie. no_NO and 
friends.

The only way I've succeeded in setting the locale on 
Python 2.1 is to use the format described in the 
Visual C++ C-runtime library docs for setlocale where 
a more verbose format is used to set the locale.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-01-16 03:50

Message:
Logged In: YES 
user_id=21627

Can you provide a detailed test case? AFAIK, no_NO is indeed
no supported locale name on Windows, and I don't think
Python aanywhere uses it without the application explicitly
saying so.

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2002-01-15 21:07

Message:
Logged In: YES 
user_id=31435

Mark, know anything about this?  I don't.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504219&group_id=5470