Multiple locales: Add date_fmt (bug 24054)

System Internals / glibc - Rafał Lużyński [lingonborough.com] - 2 January 2020 10:45 EST

It is not specified what should be the content of d_t_fmt and date_fmt but in the built-in C locale those fields have only one difference: date_fmt contains "%Z" (the current time zone) while d_t_fmt does not.

For most of the locales this commit does the following operation: copy d_t_fmt to date_fmt, and then remove "%Z" from d_t_fmt. If "%Z" was originally missing from d_t_fmt add it to date_fmt. It also corrects comments where necessary.

Exceptions:

- In bo_CN, dz_BT, and km_KH "%Z" has not been added to date_fmt because it was too difficult. In these locales date_fmt has been set to the copy of d_t_fmt.
- In en_DK "%Z" has not been removed from d_t_fmt in order to preserve the conformance with the standard mentioned in the comment.

The command to identify and initially edit the locales that need the update was:

for i in `grep -lw d_t_fmt *` do if ! grep -qw date_fmt $i ; then awk '/d_t_fmt/ { print $0; gsub("d_t_fmt", "date_fmt"); } //{ print $0 }' < $i > $i.next mv $i.next $i fi done

and then each file was further edited manually.

75ba929987 Multiple locales: Add date_fmt (bug 24054)
localedata/locales/af_ZA | 5 ++++-
localedata/locales/ak_GH | 3 ++-
localedata/locales/an_ES | 3 ++-
localedata/locales/anp_IN | 5 ++++-
localedata/locales/ar_AE | 5 ++++-
localedata/locales/ar_BH | 5 ++++-
localedata/locales/ar_DZ | 5 ++++-
localedata/locales/ar_EG | 5 ++++-
localedata/locales/ar_IN | 5 ++++-
localedata/locales/ar_IQ | 5 ++++-
localedata/locales/ar_JO | 5 ++++-
localedata/locales/ar_KW | 5 ++++-
localedata/locales/ar_LB | 5 ++++-
localedata/locales/ar_LY | 5 ++++-
localedata/locales/ar_MA | 5 ++++-
localedata/locales/ar_OM | 5 ++++-
localedata/locales/ar_QA | 5 ++++-
localedata/locales/ar_SA | 3 ++-
localedata/locales/ar_SD | 5 ++++-
localedata/locales/ar_SS | 5 ++++-
localedata/locales/ar_SY | 5 ++++-
localedata/locales/ar_TN | 5 ++++-
localedata/locales/ar_YE | 5 ++++-
localedata/locales/as_IN | 3 ++-
localedata/locales/ast_ES | 3 ++-
localedata/locales/ayc_PE | 5 ++++-
localedata/locales/az_AZ | 3 ++-
localedata/locales/be_BY | 3 ++-
localedata/locales/be_BY@latin | 3 ++-
localedata/locales/bem_ZM | 3 ++-
localedata/locales/ber_DZ | 3 ++-
localedata/locales/ber_MA | 3 ++-
localedata/locales/bg_BG | 3 ++-
localedata/locales/bhb_IN | 5 ++++-
localedata/locales/bho_IN | 5 ++++-
localedata/locales/bi_VU | 6 ++++--
localedata/locales/bn_BD | 3 ++-
localedata/locales/bn_IN | 5 ++++-
localedata/locales/bo_CN | 11 ++++++++---
localedata/locales/br_FR | 3 ++-
localedata/locales/brx_IN | 5 ++++-
localedata/locales/bs_BA | 3 ++-
localedata/locales/ca_ES | 3 ++-
localedata/locales/ce_RU | 1 +
localedata/locales/chr_US | 3 ++-
localedata/locales/crh_UA | 3 ++-
localedata/locales/cs_CZ | 3 ++-
localedata/locales/csb_PL | 3 ++-
localedata/locales/cv_RU | 3 ++-
localedata/locales/de_AT | 3 ++-
localedata/locales/de_BE | 3 ++-
localedata/locales/de_CH | 3 ++-
localedata/locales/de_LU | 3 ++-
localedata/locales/doi_IN | 5 ++++-
localedata/locales/dsb_DE | 3 ++-
localedata/locales/dv_MV | 5 ++++-
localedata/locales/dz_BT | 7 +++++++
localedata/locales/en_AU | 3 ++-
localedata/locales/en_CA | 3 ++-
localedata/locales/en_DK | 1 +
localedata/locales/en_HK | 5 ++++-
localedata/locales/en_IE | 3 ++-
localedata/locales/en_IL | 3 ++-
localedata/locales/en_IN | 5 ++++-
localedata/locales/en_NG | 7 +++++--
localedata/locales/en_NZ | 3 ++-
localedata/locales/en_PH | 5 ++++-
localedata/locales/en_SG | 3 +++
localedata/locales/en_ZA | 7 +++++--
localedata/locales/eo | 3 ++-
localedata/locales/es_AR | 3 ++-
localedata/locales/es_BO | 3 ++-
localedata/locales/es_CO | 3 ++-
localedata/locales/es_DO | 3 ++-
localedata/locales/es_ES | 3 ++-
localedata/locales/es_GT | 3 ++-
localedata/locales/es_HN | 3 ++-
localedata/locales/es_MX | 3 ++-
localedata/locales/es_NI | 3 ++-
localedata/locales/es_PA | 3 ++-
localedata/locales/es_PE | 3 ++-
localedata/locales/es_PR | 3 ++-
localedata/locales/es_PY | 3 ++-
localedata/locales/es_SV | 3 ++-
localedata/locales/es_US | 3 ++-
localedata/locales/es_UY | 3 ++-
localedata/locales/es_VE | 3 ++-
localedata/locales/et_EE | 3 ++-
localedata/locales/eu_ES | 3 ++-
localedata/locales/ff_SN | 3 ++-
localedata/locales/fil_PH | 3 ++-
localedata/locales/fo_FO | 3 ++-
localedata/locales/fr_BE | 3 ++-
localedata/locales/fr_CA | 3 ++-
localedata/locales/fr_CH | 3 ++-
localedata/locales/fr_FR | 3 ++-
localedata/locales/fr_LU | 3 ++-
localedata/locales/fur_IT | 3 ++-
localedata/locales/fy_DE | 3 ++-
localedata/locales/fy_NL | 3 ++-
localedata/locales/ga_IE | 3 ++-
localedata/locales/gd_GB | 3 ++-
localedata/locales/gl_ES | 3 ++-
localedata/locales/gu_IN | 5 ++++-
localedata/locales/gv_GB | 3 ++-
localedata/locales/ha_NG | 3 ++-
localedata/locales/he_IL | 3 ++-
localedata/locales/hi_IN | 5 ++++-
localedata/locales/hne_IN | 5 ++++-
localedata/locales/hsb_DE | 3 ++-
localedata/locales/ht_HT | 3 ++-
localedata/locales/hy_AM | 3 ++-
localedata/locales/ia_FR | 3 ++-
localedata/locales/id_ID | 3 ++-
localedata/locales/ig_NG | 3 ++-
localedata/locales/ik_CA | 3 ++-
localedata/locales/is_IS | 3 ++-
localedata/locales/iu_CA | 3 ++-
localedata/locales/ka_GE | 3 ++-
localedata/locales/kab_DZ | 5 ++++-
localedata/locales/kk_KZ | 3 ++-
localedata/locales/kl_GL | 3 ++-
localedata/locales/km_KH | 2 ++
localedata/locales/kn_IN | 5 ++++-
localedata/locales/kok_IN | 5 ++++-
localedata/locales/ks_IN | 5 ++++-
localedata/locales/ks_IN@devanagari | 5 ++++-
localedata/locales/kw_GB | 3 ++-
localedata/locales/lg_UG | 7 +++++--
localedata/locales/li_NL | 3 ++-
localedata/locales/lt_LT | 1 +
localedata/locales/lv_LV | 1 +
localedata/locales/mag_IN | 5 ++++-
localedata/locales/mai_IN | 5 ++++-
localedata/locales/mg_MG | 3 ++-
localedata/locales/mi_NZ | 3 ++-
localedata/locales/mjw_IN | 5 ++++-
localedata/locales/ml_IN | 5 ++++-
localedata/locales/mni_IN | 5 ++++-
localedata/locales/mnw_MM | 3 ++-
localedata/locales/mr_IN | 5 ++++-
localedata/locales/ms_MY | 5 ++++-
localedata/locales/mt_MT | 5 ++++-
localedata/locales/my_MM | 3 ++-
localedata/locales/nds_DE | 3 ++-
localedata/locales/nds_NL | 3 ++-
localedata/locales/ne_NP | 1 +
localedata/locales/nhn_MX | 3 ++-
localedata/locales/niu_NU | 5 ++++-
localedata/locales/nl_BE | 3 ++-
localedata/locales/nso_ZA | 7 +++++--
localedata/locales/oc_FR | 3 ++-
localedata/locales/or_IN | 3 ++-
localedata/locales/os_RU | 3 ++-
localedata/locales/pa_IN | 5 ++++-
localedata/locales/pa_PK | 5 ++++-
localedata/locales/pap_AW | 3 ++-
localedata/locales/pap_CW | 3 ++-
localedata/locales/ps_AF | 3 ++-
localedata/locales/pt_BR | 3 ++-
localedata/locales/pt_PT | 3 ++-
localedata/locales/quz_PE | 3 ++-
localedata/locales/raj_IN | 3 ++-
localedata/locales/ru_RU | 3 ++-
localedata/locales/rw_RW | 3 ++-
localedata/locales/sa_IN | 5 ++++-
localedata/locales/sat_IN | 5 ++++-
localedata/locales/sd_IN | 5 ++++-
localedata/locales/sd_IN@devanagari | 5 ++++-
localedata/locales/sgs_LT | 3 ++-
localedata/locales/shn_MM | 3 ++-
localedata/locales/shs_CA | 3 ++-
localedata/locales/sk_SK | 3 ++-
localedata/locales/sl_SI | 3 ++-
localedata/locales/sm_WS | 5 ++++-
localedata/locales/sv_SE | 1 +
localedata/locales/sw_KE | 3 ++-
localedata/locales/sw_TZ | 3 ++-
localedata/locales/ta_IN | 5 ++++-
localedata/locales/ta_LK | 3 ++-
localedata/locales/tcy_IN | 5 ++++-
localedata/locales/te_IN | 5 ++++-
localedata/locales/tg_TJ | 3 ++-
localedata/locales/the_NP | 5 ++++-
localedata/locales/tk_TM | 3 ++-
localedata/locales/tl_PH | 3 ++-
localedata/locales/to_TO | 5 ++++-
localedata/locales/tpi_PG | 5 ++++-
localedata/locales/tr_TR | 3 ++-
localedata/locales/tt_RU | 3 ++-
localedata/locales/tt_RU@iqtelif | 3 ++-
localedata/locales/unm_US | 3 ++-
localedata/locales/ur_IN | 5 ++++-
localedata/locales/ur_PK | 5 ++++-
localedata/locales/ve_ZA | 7 +++++--
localedata/locales/wa_BE | 3 ++-
localedata/locales/wo_SN | 3 ++-
localedata/locales/yi_US | 3 ++-
localedata/locales/yo_NG | 4 +++-
localedata/locales/yuw_PG | 3 ++-
localedata/locales/zh_HK | 3 +++
localedata/locales/zh_SG | 7 +++++--
localedata/locales/zh_TW | 3 +++
localedata/locales/zu_ZA | 7 +++++--
204 files changed, 564 insertions(+), 203 deletions(-)

Upstream: sourceware.org


  • Share