[Python-checkins] python/dist/src/Tools/i18n makelocalealias.py, 1.1, 1.2

lemburg at users.sourceforge.net lemburg at users.sourceforge.net
Mon Dec 13 20:56:04 CET 2004


Update of /cvsroot/python/python/dist/src/Tools/i18n
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8617/Tools/i18n

Modified Files:
	makelocalealias.py 
Log Message:
Correct mapping of Python codec name to C encoding name for UTF-8 (the C lib
doesn't seem to like "UTF-8").

Removed the UTF-8 aliases since these should be available for all locales.



Index: makelocalealias.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/i18n/makelocalealias.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- makelocalealias.py	10 Dec 2004 21:58:14 -0000	1.1
+++ makelocalealias.py	13 Dec 2004 19:56:01 -0000	1.2
@@ -37,6 +37,10 @@
             encoding = encoding.replace('-', '')
             encoding = encoding.replace('_', '')
             locale = lang + '.' + encoding
+            if encoding.lower() == 'utf8':
+                # Ignore UTF-8 mappings - this encoding should be
+                # available for all locales
+                continue
         data[locale] = alias
     return data
 



More information about the Python-checkins mailing list