Skip to content

Commit 4028da8

Browse files
committed
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.
1 parent b821173 commit 4028da8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Lib/locale.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,11 +1025,11 @@ def getpreferredencoding(do_setlocale = True):
10251025
'english_united-states': 'en_US.ISO8859-1',
10261026
'english_united-states.437': 'C',
10271027
'english_us': 'en_US.ISO8859-1',
1028-
'eo': 'eo_XX.ISO8859-3',
1028+
'eo': 'eo.UTF-8',
10291029
'eo.utf8': 'eo.UTF-8',
1030-
'eo_eo': 'eo_EO.ISO8859-3',
1031-
'eo_us.utf8': 'eo_US.UTF-8',
1032-
'eo_xx': 'eo_XX.ISO8859-3',
1030+
'eo_eo': 'eo.UTF-8',
1031+
'eo_us.utf8': 'eo.UTF-8',
1032+
'eo_xx': 'eo.UTF-8',
10331033
'es': 'es_ES.ISO8859-1',
10341034
'es_ar': 'es_AR.ISO8859-1',
10351035
'es_bo': 'es_BO.ISO8859-1',
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Replaced incorrect Esperanto locales with the only existent glibc locale for
2+
Esperanto (eo.UTF-8) in the mappings in locale.py.

0 commit comments

Comments
 (0)