summaryrefslogtreecommitdiff
path: root/debian/patches/locale-module.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/locale-module.diff')
-rw-r--r--debian/patches/locale-module.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/locale-module.diff b/debian/patches/locale-module.diff
new file mode 100644
index 0000000..1245cc4
--- /dev/null
+++ b/debian/patches/locale-module.diff
@@ -0,0 +1,19 @@
+# DP: * Lib/locale.py:
+# DP: - Don't map 'utf8', 'utf-8' to 'utf', which is not a known encoding
+# DP: for glibc.
+
+Index: b/Lib/locale.py
+===================================================================
+--- a/Lib/locale.py
++++ b/Lib/locale.py
+@@ -1335,8 +1335,8 @@ locale_alias = {
+ 'ug_cn': 'ug_CN.UTF-8',
+ 'uk': 'uk_UA.KOI8-U',
+ 'uk_ua': 'uk_UA.KOI8-U',
+- 'univ': 'en_US.utf',
+- 'universal': 'en_US.utf',
++ 'univ': 'en_US.UTF-8',
++ 'universal': 'en_US.UTF-8',
+ 'universal.utf8@ucs4': 'en_US.UTF-8',
+ 'unm_us': 'unm_US.UTF-8',
+ 'ur': 'ur_PK.CP1256',