Message91404
The sr_RS locale in glibc corresponds to the Cyrillic script, while the
agreed upon locale for the Latin alphabet is sr_RS@latin. Unfortunately,
the locale python module crashes when trying to parse this locale. Here
is the traceback:
File "/usr/lib/python2.6/locale.py", line 497, in get locale
return _parse_localename(localename)
File "usr/lib/python2.6/locale.py", line 410, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
Looking at the code, it only checks for the @euro modifier and ignores
all other modifiers (including @latin). This is all when I set
LANG=sr_RS@latin. If I use LANG=sr_RS.UTF8@latin (also allowed by
glibc), Python interprets this as the sr_RS locale (which is wrong, as
that is for Cyrillic). |
|
Date |
User |
Action |
Args |
2009-08-07 14:34:34 | VPeric | set | recipients:
+ VPeric |
2009-08-07 14:34:34 | VPeric | set | messageid: <1249655674.35.0.635015975428.issue6668@psf.upfronthosting.co.za> |
2009-08-07 14:34:33 | VPeric | link | issue6668 messages |
2009-08-07 14:34:32 | VPeric | create | |
|