bpo-33432: Add en_IL support into the locale alias mapping by Licht-T · Pull Request #6707 · python/cpython

Expand Up @@ -846,6 +846,9 @@ def getpreferredencoding(do_setlocale = True): # # SS 2014-10-01: # Updated alias mapping with glibc 2.19 supported locales. # # Licht-T 2018-05-05: # Add en_il mapping, which is added in glibc 2.24.
locale_alias = { 'a3': 'az_AZ.KOI8-C', Expand Down Expand Up @@ -977,6 +980,7 @@ def getpreferredencoding(do_setlocale = True): 'en_gb': 'en_GB.ISO8859-1', 'en_hk': 'en_HK.ISO8859-1', 'en_ie': 'en_IE.ISO8859-1', 'en_il': 'en_IL.UTF-8', 'en_in': 'en_IN.ISO8859-1', 'en_ng': 'en_NG.UTF-8', 'en_nz': 'en_NZ.ISO8859-1', Expand Down