This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author VPeric
Recipients VPeric
Date 2009-08-07.14:34:31
SpamBayes Score 0.00026334927
Marked as misclassified No
Message-id <1249655674.35.0.635015975428.issue6668@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2009-08-07 14:34:34VPericsetrecipients: + VPeric
2009-08-07 14:34:34VPericsetmessageid: <1249655674.35.0.635015975428.issue6668@psf.upfronthosting.co.za>
2009-08-07 14:34:33VPericlinkissue6668 messages
2009-08-07 14:34:32VPericcreate