Stefan Krah <stefan-use...@bytereef.org> added the comment: Is there another (authoritative) source for locale aliases apart from X.org? On Ubuntu Lucid, many aliases for installed locales are missing:
f = open("/var/lib/locales/supported.d/local") locale_list = [loc.split()[0] for loc in f.readlines() \ if not loc.startswith('#')] for loc in locale_list: x = locale.setlocale(locale.LC_ALL, loc) try: y = locale.getlocale() except ValueError: print(loc) aa_DJ aa_ER aa_ER@saaho aa_ET an_ES ar_IN ast_ES ber_DZ ber_MA bn_BD bo_CN bo_IN byn_ER ca_ES@valencia crh_UA csb_PL dv_MV dz_BT el_CY en_AG en_DK en_NG eu_FR fil_PH fur_IT fy_NL fy_DE gez_ER gez_ER@abegede gez_ET gez_ET@abegede ha_NG hne_IN hsb_DE ht_HT hy_AM ia ig_NG ik_CA kk_KZ kk_KZ ks_IN ks_IN@devanagari ku_TR lg_UG li_BE li_NL mai_IN mg_MG ml_IN mn_MN my_MM nan_TW@latin nds_DE nds_NL ne_NP nl_AW om_ET om_KE or_IN pa_PK pap_AN ps_AF sa_IN sc_IT sd_IN sd_IN@devanagari shs_CA sid_ET so_DJ so_ET so_KE so_SO te_IN ti_ER ti_ET tig_ER tk_TM tr_CY tt...@iqtelif.utf-8 ug_CN wal_ET wo_SN yo_NG zh_SG ---------- nosy: +skrah _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6895> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com