From 4028da822f2661e806ab012f1beac0b975f699ba Mon Sep 17 00:00:00 2001 From: Carmen Bianca Bakker Date: Wed, 8 Jan 2020 02:47:20 +0100 Subject: [PATCH] locale: Change locale_alias for Esperanto The locale_alias dictionary in locale.py maps to locales that do not exist in glibc. This commit changes all keys to the sole existing Esperanto locale. --- Lib/locale.py | 8 ++++---- .../next/Library/2020-01-08-03-07-09.bpo-35163.GTirF-.rst | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2020-01-08-03-07-09.bpo-35163.GTirF-.rst diff --git a/Lib/locale.py b/Lib/locale.py index dd8a08524a018e..af9ceba3100515 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -1025,11 +1025,11 @@ def getpreferredencoding(do_setlocale = True): 'english_united-states': 'en_US.ISO8859-1', 'english_united-states.437': 'C', 'english_us': 'en_US.ISO8859-1', - 'eo': 'eo_XX.ISO8859-3', + 'eo': 'eo.UTF-8', 'eo.utf8': 'eo.UTF-8', - 'eo_eo': 'eo_EO.ISO8859-3', - 'eo_us.utf8': 'eo_US.UTF-8', - 'eo_xx': 'eo_XX.ISO8859-3', + 'eo_eo': 'eo.UTF-8', + 'eo_us.utf8': 'eo.UTF-8', + 'eo_xx': 'eo.UTF-8', 'es': 'es_ES.ISO8859-1', 'es_ar': 'es_AR.ISO8859-1', 'es_bo': 'es_BO.ISO8859-1', diff --git a/Misc/NEWS.d/next/Library/2020-01-08-03-07-09.bpo-35163.GTirF-.rst b/Misc/NEWS.d/next/Library/2020-01-08-03-07-09.bpo-35163.GTirF-.rst new file mode 100644 index 00000000000000..21f8dd870c41d6 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-01-08-03-07-09.bpo-35163.GTirF-.rst @@ -0,0 +1,2 @@ +Replaced incorrect Esperanto locales with the only existent glibc locale for +Esperanto (eo.UTF-8) in the mappings in locale.py.