[ python-Bugs-1177674 ] error locale.getlocale() with LANGUAGE=eu_ES

SourceForge.net noreply at sourceforge.net
Wed Apr 6 15:08:37 CEST 2005


Bugs item #1177674, was opened at 2005-04-06 19:59
Message generated for change (Comment added) made by perky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1177674&group_id=5470

Category: Python Library
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Zunbeltz Izaola (zunbeltz)
Assigned to: Nobody/Anonymous (nobody)
Summary: error locale.getlocale() with LANGUAGE=eu_ES

Initial Comment:
My LANGUAGE is set tu eu_ES but the getlocale() 
output is (None, None).
This is check with the command

python -c "import locale; print locale.getlocale()"

python version 2.4
os. linux - ubuntu

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

>Comment By: Hye-Shik Chang (perky)
Date: 2005-04-06 22:08

Message:
Logged In: YES 
user_id=55188

It's an intended behavior and conforms POSIX standard.
locale doesn't set until program calls locale.setlocale()
explicitly.

miffy(perky):~% LC_ALL=ko_KR.UTF-8 python
Python 2.4 (#2, Feb  4 2005, 12:07:54)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
Type "help", "copyright", "credits" or "license" for more
information.
>>> import locale
>>> locale.getlocale()
(None, None)
>>> locale.setlocale(locale.LC_ALL, '')
'ko_KR.UTF-8'
>>> locale.getlocale()
['ko_KR', 'utf']


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

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


More information about the Python-bugs-list mailing list