]> git.ipfire.org Git - thirdparty/gcc.git/commit
Ada: Fix ACATS cxaj001 test on Solaris
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 2 Nov 2025 20:21:04 +0000 (21:21 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Sun, 2 Nov 2025 20:24:29 +0000 (21:24 +0100)
commit57b6383ca68688fccab2ed58fbfdbf03f43e27f4
tree9dff3f7d76414ceb880b09a4ad864a17fee63593
parent27ddde739d55ad7e0228b12bff9346facfb22a12
Ada: Fix ACATS cxaj001 test on Solaris

The problem is that Ada.Locales.Language returns a language code that is
not in the expected range because it does not validate the code.

gcc/ada/
* locales.c (is_iso_639_3): New static function.
(c_get_language_code): Use it to validate the ISO-639-3 code
before returning it.
gcc/ada/locales.c