aboutsummaryrefslogtreecommitdiff
path: root/examples/python2.7/patches/locale-module.diff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python2.7/patches/locale-module.diff')
-rw-r--r--examples/python2.7/patches/locale-module.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/python2.7/patches/locale-module.diff b/examples/python2.7/patches/locale-module.diff
new file mode 100644
index 0000000..1c3f52f
--- /dev/null
+++ b/examples/python2.7/patches/locale-module.diff
@@ -0,0 +1,17 @@
+# DP: * Lib/locale.py:
+# DP: - Don't map 'utf8', 'utf-8' to 'utf', which is not a known encoding
+# DP: for glibc.
+
+--- a/Lib/locale.py
++++ b/Lib/locale.py
+@@ -1520,8 +1520,8 @@
+ 'uk_ua.iso88595': 'uk_UA.ISO8859-5',
+ 'uk_ua.koi8u': 'uk_UA.KOI8-U',
+ 'uk_ua.microsoftcp1251': 'uk_UA.CP1251',
+- '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',
+ 'ur': 'ur_PK.CP1256',
+ 'ur_pk': 'ur_PK.CP1256',