Mike FABIAN added the comment:

A simple fix for that problem could look like this:

mfabian@ari:~
$ diff -u /usr/lib64/python2.7/locale.py.orig /usr/lib64/python2.7/locale.py
--- /usr/lib64/python2.7/locale.py.orig 2013-11-09 09:08:24.807331535 +0100
+++ /usr/lib64/python2.7/locale.py      2013-11-09 09:08:34.526390646 +0100
@@ -377,7 +377,7 @@
     # First lookup: fullname (possibly with encoding)
     norm_encoding = encoding.replace('-', '')
     norm_encoding = norm_encoding.replace('_', '')
-    lookup_name = langname + '.' + encoding
+    lookup_name = langname + '.' + norm_encoding
     code = locale_alias.get(lookup_name, None)
     if code is not None:
         return code
@@ -1457,6 +1457,7 @@
     'sr_cs@latn':                           'sr_RS.UTF-8@latin',
     'sr_me':                                'sr_ME.UTF-8',
     'sr_rs':                                'sr_RS.UTF-8',
+    'sr_rs.utf8@latin':                      'sr_RS.UTF-8@latin',
     'sr_rs.utf8@latn':                      'sr_RS.UTF-8@latin',
     'sr_rs@latin':                          'sr_RS.UTF-8@latin',
     'sr_rs@latn':                           'sr_RS.UTF-8@latin',
mfabian@ari:~
$

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19534>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to