From: Bruno Haible Date: Sat, 4 Oct 2025 02:21:50 +0000 (+0200) Subject: localename-unsafe: Fix handling of yue-Hans locale on macOS. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d64a3155318e29dcf072a5c377ea1a8a9bfec62;p=thirdparty%2Fgnulib.git localename-unsafe: Fix handling of yue-Hans locale on macOS. Reported by Grisha Levit in . * lib/localename-unsafe.c (langtag_entry): Adjust array dimensions of elements. --- diff --git a/ChangeLog b/ChangeLog index 325ef7d087..b8f98a18ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2025-10-03 Bruno Haible + + localename-unsafe: Fix handling of yue-Hans locale on macOS. + Reported by Grisha Levit in + . + * lib/localename-unsafe.c (langtag_entry): Adjust array dimensions of + elements. + 2025-10-03 Bruno Haible unimetadata/base: Add tests. diff --git a/lib/localename-unsafe.c b/lib/localename-unsafe.c index 708aa28569..08db8585cd 100644 --- a/lib/localename-unsafe.c +++ b/lib/localename-unsafe.c @@ -1299,7 +1299,7 @@ gl_locale_name_canonicalize (char *name) /* Convert new-style locale names with language tags (ISO 639 and ISO 15924) to Unix (ISO 639 and ISO 3166) names. */ - typedef struct { const char langtag[7+1]; const char unixy[12+1]; } + typedef struct { const char langtag[8+1]; const char unixy[5+1]; } langtag_entry; static const langtag_entry langtag_table[] = { /* Mac OS X has "az-Arab", "az-Cyrl", "az-Latn".