Carlos O'Donell
684fbab755
locale: Handle loading a missing locale twice (Bug 14247)
...
Delay setting file->decided until the data has been successfully loaded
by _nl_load_locale(). If the function fails to load the data then we
must return and error and leave decided untouched to allow the caller to
attempt to load the data again at a later time. We should not set
decided to 1 early in the function since doing so may prevent attempting
to load it again. We want to try loading it again because that allows an
open to fail and set errno correctly.
On the other side of this problem is that if we are called again with
the same inputs we will fetch the cached version of the object and carry
out no open syscalls and that fails to set errno so we must set errno to
ENOENT in that case. There is a second code path that has to be handled
where the name of the locale matches but the codeset doesn't match.
These changes ensure that errno is correctly set on failure in all the
return paths in _nl_find_locale().
Adds tst-locale-loadlocale to cover the bug.
No regressions on x86_64.
Co-authored-by: Jeff Law <law@redhat.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2024-04-22 16:03:00 -04:00
Carlos O'Donell
db50990ddb
Update SHARED-FILES and license for Unicode 15.1.0.
...
In 2018 the license changed to use Unicode-3.0 license.
The Unicode License is a permissive MIT type of license.
Automation is updated to fetch the correct license file to
keep it in sync with the data files.
The new license is OSI approved and has an SPDX identifer:
https://opensource.org/license/unicode-license-v3
https://spdx.org/licenses/Unicode-3.0.html
The FSF and the GNU Project have been contacted to update
the license list for this license:
https://www.gnu.org/licenses/license-list.html
2024-02-27 08:27:14 -05:00
Mike FABIAN
07fd072caf
localedata: ssy_ER: Fix syntax error
2024-02-08 08:13:37 +01:00
Dragan Stanojević (Nevidljivi)
559010e471
localedata: hr_HR: change currency to EUR/€
...
Resolves: BZ # 29845
2024-02-08 08:13:37 +01:00
Mike FABIAN
30a61b1dd9
Change lv_LV collation to agree with the recent change in CLDR
...
Resolves: https://sourceware.org/bugzilla/show_bug.cgi?id=23774
See this change in CLDR committed on 2024-01-29:
635e2d3d05
2024-02-08 08:13:37 +01:00
Mike FABIAN
5176a830e7
localedata: Use consistent values for grouping and mon_grouping
...
Resolves: BZ # 31205
Adapt test cases in test-grouping_iterator.c
2024-01-25 11:41:02 +01:00
Mike FABIAN
8393f4f72b
localedata: renamed: aa_ER@saaho -> ssy_ER
...
Resolves: BZ # 19956
2024-01-18 11:44:38 +01:00
Mike FABIAN
8e474d5e40
localedata: add crh_RU, Crimean Tartar language in the Cyrillic script as used in Russia.
...
Resolves: BZ # 24386
2024-01-18 09:18:57 +01:00
Mike FABIAN
ce787f36e6
localedata: tr_TR, ku_TR: Sync with CLDR: “Turkey” -> “Türkiye”
...
Resolves: BZ # 31257
2024-01-18 08:30:34 +01:00
Mike FABIAN
70e26de105
localedata: miq_NI: Shorten month names in abmon
...
Resolves: BZ # 23172
2024-01-18 07:56:24 +01:00
Mike FABIAN
ce77e6919f
localedata: add gbm_IN locale
...
Resolves: BZ # 19479
2024-01-17 17:50:33 +01:00
Mike FABIAN
9d2703c109
localedata: anp_IN: Fix abbreviated month names
...
Resolves: BZ # 31239
The correct abbreviated month names were apparently given in the comment above `abmon`.
But the value of `abmon` was apparently just copied from the value of `mon` and this
mistake was hard to see because code point notation <Uxxxx> was used. After converting
to UTF-8 it was obvious that there was apparently a copy and paste mistake.
2024-01-15 23:12:48 +01:00
Mike FABIAN
064c708c78
localedata/unicode-gen/utf8_gen.py: fix Hangul syllable name
...
Resolves: BZ # 29506
2024-01-14 11:42:28 +01:00
Mike FABIAN
fe6c8bab3a
localedata: Remove redundant comments
2024-01-13 00:54:40 +01:00
Mike FABIAN
c0c259c3bd
localedata: revert all the remaining locale sources to UTF-8
2024-01-11 15:04:25 +01:00
Mike FABIAN
e71c27b7ec
localedata: am_ET ber_DZ en_GB en_PH en_US fil_PH kab_DZ om_ET om_KE ti_ET tl_PH: convert to UTF-8
2024-01-11 13:36:08 +01:00
Mike FABIAN
cb8e8b2e21
localedata: resolve cyclic dependencies
...
Resolves: BZ # 24006
2024-01-11 13:36:08 +01:00
Mike FABIAN
449aa2698c
localedata: kv_RU: convert to UTF-8
2024-01-11 13:36:08 +01:00
Mike FABIAN
dff5023a87
localedata: add new locale kv_RU
...
Resolves: BZ # 30605
2024-01-11 13:36:08 +01:00
Carlos O'Donell
a09b2aacd9
localedata: Sort Makefile variables.
...
Sort Makefile variables using scrips/sort-makefile-lines.py.
No regressions on x86_64.
2024-01-10 14:08:26 -05:00
Mike FABIAN
46e713be57
localedata: su_ID: make lang_name agree with CLDR
2024-01-09 17:11:58 +01:00
Mike FABIAN
4cf0bd8431
localedata: add new locale su_ID
...
Resolves: BZ # 27312
2024-01-09 17:11:58 +01:00
Mike FABIAN
03f2265a37
localedata: add new locale zgh_MA
...
Resolves: BZ # 12908
https://iso639-3.sil.org/code/zgh
2024-01-09 17:11:58 +01:00
Mike FABIAN
4514f82929
localedata: add tok/UTF-8 to SUPPORTED
2024-01-09 12:08:14 +01:00
Mike FABIAN
ed97da8c7a
localedata: tok: add yY and nN to yesexpr and noexpr
...
See: https://sourceware.org/bugzilla/show_bug.cgi?id=31221#c2
2024-01-09 12:08:14 +01:00
Mike FABIAN
2ddf2f8db1
localedata: tok: convert to UTF-8
2024-01-09 12:08:14 +01:00
Janet Blackquill
d3a2aecc1c
localedata: add data for tok (Toki Pona)
...
Resolves: BZ # 31221
glibc can recognise its code, but does not have its data.
This patch remedies that.
Signed-off-by: Janet Blackquill <uhhadd@gmail.com>
2024-01-09 12:07:48 +01:00
Mike FABIAN
e171ad7d59
localedata: dz_BT, bo_CN: convert to UTF-8
2024-01-08 17:02:09 +01:00
Valery Ushakov
4c2b356be5
localedata: dz_BT, bo_CN: Fix spelling of "phur bu" in both Tibetan and Dzongkha
...
Resolves: BZ # 31086
2024-01-08 16:44:28 +01:00
Valery Ushakov
6b8419ba5f
localedata: bo_CN: Fix spelling errors in Tibetan data
...
Resolves: BZ # 31086
2024-01-08 16:39:31 +01:00
Valery Ushakov
c4f648ed4d
localedata: bo_CN: Fix incomplete edit in Tibetan yesexpr
...
Resolves: BZ # 31086
2024-01-08 16:08:07 +01:00
Valery Ushakov
460f26e51b
localedata: dz_BT: Fix spelling errors in Dzongha data
...
Resolves: BZ # 31086
2024-01-08 16:04:59 +01:00
Mike FABIAN
d333a2e0fb
localedata: unicode-gen: Remove redundant \s* from regexp, fix comments
2024-01-08 10:06:42 +01:00
Mike FABIAN
6f87f46bf4
localedata: convert the remaining *_RU locales to UTF-8
2024-01-08 10:06:42 +01:00
Mike FABIAN
e9f5dc7e4a
localedata: ru_RU, ru_UA: convert to UTF-8
2024-01-04 16:32:44 +01:00
Mike FABIAN
d61a2bd782
localedata: es_??: convert to UTF-8
2024-01-04 16:03:08 +01:00
Mike FABIAN
734abeda98
localedata: miq_NI: convert to UTF-8
2024-01-04 16:03:08 +01:00
Mike FABIAN
b31a01909c
localedata: fy_DE: make this "Western Frisian" to agree with the language code "fy"
...
Resolves: BZ # 14522
2024-01-03 20:55:44 +01:00
Mike FABIAN
3c173c1f63
localedata: fy_DE, fy_NL: convert to UTF-8
2024-01-03 20:07:21 +01:00
Mike FABIAN
bec492c1da
localedata: ast_ES: convert to UTF-8
2024-01-03 17:44:52 +01:00
Mike FABIAN
521e96c13f
localedata: ast_ES: Remove wrong copyright text
...
Resolves: BZ # 27601
2024-01-03 17:43:55 +01:00
Mike FABIAN
5448a127e4
localedata: de_{AT,BE,CH,IT,LU}: convert to UTF-8
2024-01-03 13:54:34 +01:00
Mike FABIAN
a8f7f742be
localedata: lv_LV, it_IT, it_CH: convert to UTF-8
2024-01-03 13:54:34 +01:00
Mike FABIAN
61171bb2b9
localedata: it_IT, lv_LV: currency symbol should follow the amount
...
Resolves: BZ # 28558
2024-01-03 13:54:34 +01:00
Mike FABIAN
fe316dad7c
localedata: ms_MY should not use 12-hour format
...
Resolves: BZ # 29504
2024-01-03 11:07:27 +01:00
Mike FABIAN
b5b558ab4b
localedata: es_ES: convert to UTF-8
2024-01-02 21:30:42 +01:00
Mike FABIAN
e3e98b0327
localedata: es_ES: Add am_pm strings
...
Resolves: BZ # 24013
Use <U202F> instead of a plain space because CLDR also uses that.
2024-01-02 21:30:42 +01:00
Mike FABIAN
67f371e882
localedata: convert uz_UZ and uz_UZ@cyrillic to UTF-8
2024-01-02 16:36:43 +01:00
Mike FABIAN
cdce63a767
localedata: uz_UZ and uz_UZ@cyrillic: Fix decimal point and thousands separator
...
Resolves: BZ # 31204
2024-01-02 16:36:43 +01:00
Paul Eggert
dff8da6b3e
Update copyright dates with scripts/update-copyrights
2024-01-01 10:53:40 -08:00