1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Stefano Rivera <stefanor@debian.org>
Date: Sat, 7 Oct 2017 09:38:58 +0200
Subject: Stdlib: Don't map 'utf8', 'utf-8' to 'utf'
'utf' is not a known encoding for glibc.
Author: Matthias Klose <doko@debian.org>
Origin: Debian cpython packaging
Bug-cpython: http://bugs.python.org/issue1166957
Forwarded: https://github.com/python/cpython/pull/122877
Last-Update: 2011-12-19
---
lib-python/3/locale.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib-python/3/locale.py b/lib-python/3/locale.py
index f45841e..cd551d1 100644
--- a/lib-python/3/locale.py
+++ b/lib-python/3/locale.py
@@ -1444,8 +1444,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',
|