summaryrefslogtreecommitdiff
path: root/debian/patches/locale-module.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-09-29 13:40:02 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-09-29 13:40:02 +0300
commit424a50000a78fff715de4417dba9b4498aeeee4c (patch)
treed27f003c7d140fef24efd1b2ca1325ae099154b9 /debian/patches/locale-module.diff
downloadpython3.5-debian.tar.gz
Imported python3.5 3.5.4-4debian/3.5.4-4debian
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',