Mismatch between glibc and X11 locale.alias
Submitted by Serhiy Storchaka
Assigned to Xorg Project Team
Description
The locale.alias file includes mappings which maps locale name without encoding to locale name with encoding, but this encoding is different than default GLibc encoding for these locale. E.g. en_IN is mapped to en_IN.ISO8859-1, but the encoding of the en_IN locale in glibc is UTF-8 and en_IN.ISO8859-1 locale is not existing.
Here is full table:
GLibc X11 locale.alias
encoding
az_AZ UTF-8 az_AZ.ISO8859-9E ca_AD ISO8859-15 ca_AD.ISO8859-1 ca_FR ISO8859-15 ca_FR.ISO8859-1 ca_IT ISO8859-15 ca_IT.ISO8859-1 cy_GB ISO8859-14 cy_GB.ISO8859-1 en_IN UTF-8 en_IN.ISO8859-1 et_EE ISO8859-1 et_EE.ISO8859-15 fi_FI ISO8859-1 fi_FI.ISO8859-15 gd_GB ISO8859-15 gd_GB.ISO8859-1 hi_IN UTF-8 hi_IN.ISCII-DEV iu_CA UTF-8 iu_CA.NUNACOM-8 iw_IL ISO8859-8 he_IL.ISO8859-8 ka_GE GEORGIAN_PS ka_GE.GEORGIAN-ACADEMY lo_LA UTF-8 lo_LA.MULELAO-1 mi_NZ ISO8859-13 mi_NZ.ISO8859-1 nr_ZA UTF-8 nr_ZA.ISO8859-1 nso_ZA UTF-8 nso_ZA.ISO8859-15 ru_RU ISO8859-5 ru_RU.UTF-8 rw_RW UTF-8 rw_RW.ISO8859-1 sq_AL ISO8859-1 sq_AL.ISO8859-2 ss_ZA UTF-8 ss_ZA.ISO8859-1 ta_IN UTF-8 ta_IN.TSCII-0 tg_TJ KOI8_T tg_TJ.KOI8-C th_TH TIS_620 th_TH.ISO8859-11 tn_ZA UTF-8 tn_ZA.ISO8859-15 ts_ZA UTF-8 ts_ZA.ISO8859-1 tt_RU UTF-8 tt_RU.TATAR-CYR ur_PK UTF-8 ur_PK.CP1256 uz_UZ ISO8859-1 uz_UZ.UTF-8 vi_VN UTF-8 vi_VN.TCVN
X11 locale.alias is used to generate mappings in Python, so this causes issues in Python (http://bugs.python.org/issue20087).