Kaydet (Commit) b4cebd46 authored tarafından Marc-André Lemburg's avatar Marc-André Lemburg

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.
üst 537d3fcf
This diff is collapsed.
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment