From: Bruno Haible Date: Wed, 2 Apr 2025 18:58:17 +0000 (+0200) Subject: getlocalename_l-unsafe: Avoid undefined behaviour on Solaris 11.4. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=600d157a2e9cf1cb25f893debd4d59c90857e4b9;p=gnulib.git getlocalename_l-unsafe: Avoid undefined behaviour on Solaris 11.4. * lib/getlocalename_l-unsafe.c (getlocalename_l_unsafe): On Solaris 11.4, use "" as fallback. --- diff --git a/ChangeLog b/ChangeLog index 0166a1cdef..fc34d49e7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-04-02 Bruno Haible + + getlocalename_l-unsafe: Avoid undefined behaviour on Solaris 11.4. + * lib/getlocalename_l-unsafe.c (getlocalename_l_unsafe): On + Solaris 11.4, use "" as fallback. + 2025-04-01 Bruno Haible dcomp-script: Handle gdc binaries named -gdc. diff --git a/lib/getlocalename_l-unsafe.c b/lib/getlocalename_l-unsafe.c index 1f24f82ddb..6a72c81192 100644 --- a/lib/getlocalename_l-unsafe.c +++ b/lib/getlocalename_l-unsafe.c @@ -543,6 +543,8 @@ getlocalename_l_unsafe (int category, locale_t locale) default: /* We shouldn't get here. */ return (struct string_with_storage) { "", STORAGE_INDEFINITE }; } + /* We shouldn't get here. */ + return (struct string_with_storage) { "", STORAGE_INDEFINITE }; # else /* Solaris 11 OpenIndiana. For the internal structure of locale objects, see