| 1 |
From: Stefano Rivera <[email protected]> |
| 2 |
Date: Sat, 7 Oct 2017 09:38:58 +0200 |
| 3 |
Subject: Stdlib: Don't map 'utf8', 'utf-8' to 'utf' |
| 4 |
|
| 5 |
'utf' is not a known encoding for glibc. |
| 6 |
|
| 7 |
Author: Matthias Klose <[email protected]> |
| 8 |
Origin: Debian cpython packaging |
| 9 |
Bug-cpython: http://bugs.python.org/issue1166957 |
| 10 |
Forwarded: https://github.com/python/cpython/pull/122877 |
| 11 |
Last-Update: 2011-12-19 |
| 12 |
--- |
| 13 |
lib-python/3/locale.py | 4 ++-- |
| 14 |
1 file changed, 2 insertions(+), 2 deletions(-) |
| 15 |
|
| 16 |
diff --git a/lib-python/3/locale.py b/lib-python/3/locale.py |
| 17 |
index f45841e..cd551d1 100644 |
| 18 |
--- a/lib-python/3/locale.py |
| 19 |
+++ b/lib-python/3/locale.py |
| 20 |
@@ -1444,8 +1444,8 @@ locale_alias = { |
| 21 |
'ug_cn': 'ug_CN.UTF-8', |
| 22 |
'uk': 'uk_UA.KOI8-U', |
| 23 |
'uk_ua': 'uk_UA.KOI8-U', |
| 24 |
- 'univ': 'en_US.utf', |
| 25 |
- 'universal': 'en_US.utf', |
| 26 |
+ 'univ': 'en_US.UTF-8', |
| 27 |
+ 'universal': 'en_US.UTF-8', |
| 28 |
'universal.utf8@ucs4': 'en_US.UTF-8', |
| 29 |
'unm_us': 'unm_US.UTF-8', |
| 30 |
'ur': 'ur_PK.CP1256', |