summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2004-12-13 19:56:01 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2004-12-13 19:56:01 (GMT)
commitb4cebd465acb6370b5ec48023da8c333a7e1c753 (patch)
tree5dcc89ddade01af1c053c25aa4e69a0f1eebb397 /Tools
parent537d3fcf93a0a3203ec39a0c4e13dfb2c11dfb67 (diff)
downloadcpython-b4cebd465acb6370b5ec48023da8c333a7e1c753.zip
cpython-b4cebd465acb6370b5ec48023da8c333a7e1c753.tar.gz
cpython-b4cebd465acb6370b5ec48023da8c333a7e1c753.tar.bz2
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.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/i18n/makelocalealias.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/i18n/makelocalealias.py b/Tools/i18n/makelocalealias.py
index a52bc28..743185b 100644
--- a/Tools/i18n/makelocalealias.py
+++ b/Tools/i18n/makelocalealias.py
@@ -37,6 +37,10 @@ def parse(filename):
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