Bug 70962 - UTF-8 locale not properly recognized
Summary: UTF-8 locale not properly recognized
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: python
Version: limbo
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: 67218
TreeView+ depends on / blocked
 
Reported: 2002-08-07 10:43 UTC by Daniel Resare
Modified: 2007-04-18 16:45 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-12 22:42:13 UTC
Embargoed:


Attachments (Terms of Use)

Description Daniel Resare 2002-08-07 10:43:29 UTC
Description of Problem:
Since redhat now defaults to UTF-8 locale settings, that implies that
communications through the console should be utf-8 encoded. On the contrary to
this, when i start the python interpreter in an UTF-8 locale data that is input
is treated as if the input was in the iso-8859-1 encoding.

Consider for example the following session:

[noa@ulysses c]$ echo $LANG
sv_SE.UTF-8
[noa@ulysses c]$ python
Python 2.2.1 (#1, Jul 25 2002, 18:55:29) 
[GCC 3.2 20020720 (Red Hat Linux Rawhide 3.2-0.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> s = u"e"    #this aring is entered with my swedish keyboard
>>> len(s)
2


Version-Release number of selected component (if applicable):
python-2.2.1-14

Comment 1 Trond Eivind Glomsrxd 2002-08-12 22:42:09 UTC
Verified :(

Comment 2 Trond Eivind Glomsrxd 2002-09-03 15:40:03 UTC
Needs fixing upstream... python doesn't have a concept of unicode input atm :(.


Note You need to log in before you can comment on or make changes to this bug.