diff options
| author | Stanislav Brabec <sbrabec@suse.cz> | 2016-11-02 16:52:58 +0100 |
|---|---|---|
| committer | Mike FABIAN <mfabian@redhat.com> | 2017-08-12 16:03:49 +0200 |
| commit | 70a6707fa15e63591d991761be025e26e8d02bb6 (patch) | |
| tree | b93a97b83c050a04930441808154e2f564b3d580 | |
| parent | 8b2c63e4e2ad1fd161f80004ed30624f2a37b57b (diff) | |
| download | glibc-70a6707fa15e63591d991761be025e26e8d02bb6.tar.xz glibc-70a6707fa15e63591d991761be025e26e8d02bb6.zip | |
Locales: Use Unicode wise thousands separator
Many languages use small gap as thousands separator.
Thousands separator should not be a plain space, but a narrow space.
And additionally, it is not allowed to wrap line in the middle of the
number.
Locale data were created in a deep age of 8-bit encodings, so most of
them use space (incorrect: it allows wrapping the line in the middle
of the number), or NBSP (better, but typographically incorrect: space
between groups is too wide).
Now UNICODE is widely supported, so we should leave legacy characters
in favor of correct UNICODE character.
UNICODE has a dedicated character for this purpose:
NNBSP
U+202F NARROW NO-BREAK SPACE: a narrow form of a no-break space,
typically the width of a thin space or a mid space
The NNBSP exists since Unicode 3.0.
Use of NNBSP will prevent line wrapping in the midle of number and
improve readability of numbers.
[BZ #20756]
* locales/aa_DJ (LC_MONETARY): Replace space by NNBSP as thousands separator.
* locales/az_AZ (LC_MONETARY): Likewise.
* locales/be_BY (LC_MONETARY): Likewise.
* locales/be_BY@latin (LC_MONETARY): Likewise.
* locales/bg_BG (LC_MONETARY): Likewise.
* locales/bs_BA (LC_MONETARY): Likewise.
* locales/ce_RU (LC_MONETARY): Likewise.
* locales/crh_UA (LC_MONETARY): Likewise.
* locales/cs_CZ (LC_MONETARY): Likewise.
* locales/cs_CZ (LC_NUMERIC): Likewise.
* locales/cv_RU (LC_MONETARY): Likewise.
* locales/de_AT (LC_MONETARY): Likewise.
* locales/eo (LC_MONETARY): Likewise.
* locales/es_CR (LC_MONETARY): Likewise.
* locales/es_CR (LC_NUMERIC): Likewise.
* locales/es_CU (LC_MONETARY): Likewise.
* locales/et_EE (LC_MONETARY): Likewise.
* locales/et_EE (LC_NUMERIC): Likewise.
* locales/fi_FI (LC_MONETARY): Likewise.
* locales/fi_FI (LC_NUMERIC): Likewise.
* locales/fr_CA (LC_MONETARY): Likewise.
* locales/fr_FR (LC_MONETARY): Likewise.
* locales/fr_FR (LC_NUMERIC): Likewise.
* locales/fr_LU (LC_MONETARY): Likewise.
* locales/fr_LU (LC_NUMERIC): Likewise.
* locales/hr_HR (LC_MONETARY): Likewise.
* locales/ht_HT (LC_NUMERIC): Likewise.
* locales/kk_KZ (LC_MONETARY): Likewise.
* locales/kk_KZ (LC_NUMERIC): Likewise.
* locales/ky_KG (LC_MONETARY): Likewise.
* locales/ky_KG (LC_NUMERIC): Likewise.
* locales/lv_LV (LC_MONETARY): Likewise.
* locales/lv_LV (LC_NUMERIC): Likewise.
* locales/mg_MG (LC_MONETARY): Likewise.
* locales/mhr_RU (LC_MONETARY): Likewise.
* locales/mk_MK (LC_MONETARY): Likewise.
* locales/mk_MK (LC_NUMERIC): Likewise.
* locales/mn_MN (LC_MONETARY): Likewise.
* locales/nb_NO (LC_MONETARY): Likewise.
* locales/nb_NO (LC_NUMERIC): Likewise.
* locales/nl_AW (LC_MONETARY): Likewise.
* locales/nl_NL (LC_MONETARY): Likewise.
* locales/nn_NO (LC_MONETARY): Likewise.
* locales/os_RU (LC_MONETARY): Likewise.
* locales/pap_AW (LC_MONETARY): Likewise.
* locales/pap_CW (LC_MONETARY): Likewise.
* locales/ru_RU (LC_MONETARY): Likewise.
* locales/ru_RU (LC_NUMERIC): Likewise.
* locales/ru_UA (LC_MONETARY): Likewise.
* locales/sk_SK (LC_MONETARY): Likewise.
* locales/sk_SK (LC_NUMERIC): Likewise.
* locales/sl_SI (LC_MONETARY): Likewise.
* locales/sl_SI (LC_NUMERIC): Likewise.
* locales/sq_MK (LC_MONETARY): Likewise.
* locales/sv_SE (LC_MONETARY): Likewise.
* locales/sv_SE (LC_NUMERIC): Likewise.
* locales/tg_TJ (LC_MONETARY): Likewise.
* locales/tt_RU (LC_MONETARY): Likewise.
* locales/tt_RU@iqtelif (LC_MONETARY): Likewise.
* locales/uk_UA (LC_MONETARY): Likewise.
* locales/uk_UA (LC_NUMERIC): Likewise.
* locales/unm_US (LC_MONETARY): Likewise.
* locales/unm_US (LC_NUMERIC): Likewise.
* locales/wo_SN (LC_MONETARY): Likewise.
48 files changed, 133 insertions, 65 deletions
diff --git a/localedata/ChangeLog b/localedata/ChangeLog index af08af9a17..20c710f216 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,71 @@ +2017-08-12 Stanislav Brabec <sbrabec@suse.cz> + + [BZ #20756] + * locales/aa_DJ (LC_MONETARY): Replace space by NNBSP as thousands separator. + * locales/az_AZ (LC_MONETARY): Likewise. + * locales/be_BY (LC_MONETARY): Likewise. + * locales/be_BY@latin (LC_MONETARY): Likewise. + * locales/bg_BG (LC_MONETARY): Likewise. + * locales/bs_BA (LC_MONETARY): Likewise. + * locales/ce_RU (LC_MONETARY): Likewise. + * locales/crh_UA (LC_MONETARY): Likewise. + * locales/cs_CZ (LC_MONETARY): Likewise. + * locales/cs_CZ (LC_NUMERIC): Likewise. + * locales/cv_RU (LC_MONETARY): Likewise. + * locales/de_AT (LC_MONETARY): Likewise. + * locales/eo (LC_MONETARY): Likewise. + * locales/es_CR (LC_MONETARY): Likewise. + * locales/es_CR (LC_NUMERIC): Likewise. + * locales/es_CU (LC_MONETARY): Likewise. + * locales/et_EE (LC_MONETARY): Likewise. + * locales/et_EE (LC_NUMERIC): Likewise. + * locales/fi_FI (LC_MONETARY): Likewise. + * locales/fi_FI (LC_NUMERIC): Likewise. + * locales/fr_CA (LC_MONETARY): Likewise. + * locales/fr_FR (LC_MONETARY): Likewise. + * locales/fr_FR (LC_NUMERIC): Likewise. + * locales/fr_LU (LC_MONETARY): Likewise. + * locales/fr_LU (LC_NUMERIC): Likewise. + * locales/hr_HR (LC_MONETARY): Likewise. + * locales/ht_HT (LC_NUMERIC): Likewise. + * locales/kk_KZ (LC_MONETARY): Likewise. + * locales/kk_KZ (LC_NUMERIC): Likewise. + * locales/ky_KG (LC_MONETARY): Likewise. + * locales/ky_KG (LC_NUMERIC): Likewise. + * locales/lv_LV (LC_MONETARY): Likewise. + * locales/lv_LV (LC_NUMERIC): Likewise. + * locales/mg_MG (LC_MONETARY): Likewise. + * locales/mhr_RU (LC_MONETARY): Likewise. + * locales/mk_MK (LC_MONETARY): Likewise. + * locales/mk_MK (LC_NUMERIC): Likewise. + * locales/mn_MN (LC_MONETARY): Likewise. + * locales/nb_NO (LC_MONETARY): Likewise. + * locales/nb_NO (LC_NUMERIC): Likewise. + * locales/nl_AW (LC_MONETARY): Likewise. + * locales/nl_NL (LC_MONETARY): Likewise. + * locales/nn_NO (LC_MONETARY): Likewise. + * locales/os_RU (LC_MONETARY): Likewise. + * locales/pap_AW (LC_MONETARY): Likewise. + * locales/pap_CW (LC_MONETARY): Likewise. + * locales/ru_RU (LC_MONETARY): Likewise. + * locales/ru_RU (LC_NUMERIC): Likewise. + * locales/ru_UA (LC_MONETARY): Likewise. + * locales/sk_SK (LC_MONETARY): Likewise. + * locales/sk_SK (LC_NUMERIC): Likewise. + * locales/sl_SI (LC_MONETARY): Likewise. + * locales/sl_SI (LC_NUMERIC): Likewise. + * locales/sq_MK (LC_MONETARY): Likewise. + * locales/sv_SE (LC_MONETARY): Likewise. + * locales/sv_SE (LC_NUMERIC): Likewise. + * locales/tg_TJ (LC_MONETARY): Likewise. + * locales/tt_RU (LC_MONETARY): Likewise. + * locales/tt_RU@iqtelif (LC_MONETARY): Likewise. + * locales/uk_UA (LC_MONETARY): Likewise. + * locales/uk_UA (LC_NUMERIC): Likewise. + * locales/unm_US (LC_MONETARY): Likewise. + * locales/unm_US (LC_NUMERIC): Likewise. + * locales/wo_SN (LC_MONETARY): Likewise. + 2017-08-10 Akhilesh Kumar <akhilesh.k@samsung.com> Remove redundant data for LC_MONETARY diff --git a/localedata/locales/aa_DJ b/localedata/locales/aa_DJ index fa918d7fc4..9d9e6f030d 100644 --- a/localedata/locales/aa_DJ +++ b/localedata/locales/aa_DJ @@ -88,7 +88,7 @@ LC_MONETARY int_curr_symbol "<U0044><U004A><U0046><U0020>" currency_symbol "<U0046><U0064><U006A>" mon_decimal_point "<U002E>" -mon_thousands_sep "<U0020>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" diff --git a/localedata/locales/az_AZ b/localedata/locales/az_AZ index d452d4b194..28de66d285 100644 --- a/localedata/locales/az_AZ +++ b/localedata/locales/az_AZ @@ -214,7 +214,7 @@ LC_MONETARY int_curr_symbol "<U0041><U005A><U004E><U0020>" currency_symbol "<U20BC>" mon_decimal_point "<U002E>" -mon_thousands_sep "<U0020>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" diff --git a/localedata/locales/be_BY b/localedata/locales/be_BY index e6ed0ad11f..041b386524 100644 --- a/localedata/locales/be_BY +++ b/localedata/locales/be_BY @@ -82,7 +82,7 @@ LC_MONETARY int_curr_symbol "<U0042><U0059><U0052><U0020>" currency_symbol "<U0440><U0443><U0431>" mon_decimal_point "<U002E>" -mon_thousands_sep "<U0020>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" diff --git a/localedata/locales/be_BY@latin b/localedata/locales/be_BY@latin index 58fee57579..1a32e7619f 100644 --- a/localedata/locales/be_BY@latin +++ b/localedata/locales/be_BY@latin @@ -115,7 +115,7 @@ LC_MONETARY int_curr_symbol "<U0042><U0059><U0052><U0020>" currency_symbol "<U0052><U0075><U0062>" mon_decimal_point "<U002E>" -mon_thousands_sep "<U0020>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" diff --git a/localedata/locales/bg_BG b/localedata/locales/bg_BG index 92ca5ad1e2..508a8155d7 100644 --- a/localedata/locales/bg_BG +++ b/localedata/locales/bg_BG @@ -165,7 +165,7 @@ LC_MONETARY int_curr_symbol "<U0042><U0047><U004E><U0020>" currency_symbol "<U043B><U0432><U002E>" mon_decimal_point "<U002C>" -mon_thousands_sep "<U00A0>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" diff --git a/localedata/locales/bs_BA b/localedata/locales/bs_BA index 6fa4523be6..45dd49d4df 100644 --- a/localedata/locales/bs_BA +++ b/localedata/locales/bs_BA @@ -157,7 +157,7 @@ LC_MONETARY int_curr_symbol "<U0042><U0041><U004D><U0020>" currency_symbol "<U004B><U004D>" mon_decimal_point "<U002C>" -mon_thousands_sep "<U0020>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" diff --git a/localedata/locales/ce_RU b/localedata/locales/ce_RU index 7f24fe01b2..7beadfb7a3 100644 --- a/localedata/locales/ce_RU +++ b/localedata/locales/ce_RU @@ -111,7 +111,7 @@ int_curr_symbol "<U0052><U0055><U0042><U0020>" currency_symbol "<U20BD>" % . mon_decimal_point "<U002E>" -mon_thousands_sep "<U00A0>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" diff --git a/localedata/locales/crh_UA b/localedata/locales/crh_UA index 06b9b5a969..8023e635aa 100644 --- a/localedata/locales/crh_UA +++ b/localedata/locales/crh_UA @@ -137,7 +137,7 @@ LC_MONETARY int_curr_symbol "<U0055><U0041><U0048><U0020>" currency_symbol "<U20B4>" mon_decimal_point "<U002E>" -mon_thousands_sep "<U0020>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" diff --git a/localedata/locales/cs_CZ b/localedata/locales/cs_CZ index 7973dcac90..ca486c2727 100644 --- a/localedata/locales/cs_CZ +++ b/localedata/locales/cs_CZ @@ -2332,7 +2332,7 @@ LC_MONETARY int_curr_symbol "<U0043><U005A><U004B><U0020>" currency_symbol "<U004B><U010D>" mon_decimal_point "<U002C>" -mon_thousands_sep "<U00A0>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" @@ -2353,7 +2353,7 @@ END LC_MONETARY LC_NUMERIC decimal_point "<U002C>" -thousands_sep "<U00A0>" +thousands_sep "<U202F>" grouping 3;3 END LC_NUMERIC diff --git a/localedata/locales/cv_RU b/localedata/locales/cv_RU index aa002935ff..e0d166a4bf 100644 --- a/localedata/locales/cv_RU +++ b/localedata/locales/cv_RU @@ -123,7 +123,7 @@ int_curr_symbol "<U0052><U0055><U0042><U0020>" currency_symbol "<U20BD>" mon_decimal_point "<U002E>" -mon_thousands_sep "<U00A0>" +mon_thousands_sep "<U202F>" mon_grouping 3;3 positive_sign "" negative_sign "<U002D>" |
