+2025-02-21 Bruno Haible <bruno@clisp.org>
+
+ localename-unsafe: Remove support for nonexistent Solaris 12.
+ * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Remove test for
+ getlocalename_l.
+ * lib/localename-unsafe.c: Ignore HAVE_GETLOCALENAME_L.
+
2025-02-21 Bruno Haible <bruno@clisp.org>
setlocale: Relicense under LGPLv2+.
# include <langinfo.h>
# endif
# if defined __sun
-# if HAVE_GETLOCALENAME_L
-/* Solaris >= 12. */
-extern char * getlocalename_l(int, locale_t);
-# elif HAVE_SOLARIS114_LOCALES
+# if HAVE_SOLARIS114_LOCALES
# include <sys/localedef.h>
# endif
# endif
}
return querylocale (mask, thread_locale);
# elif defined __sun
-# if HAVE_GETLOCALENAME_L
- /* Solaris >= 12. */
- return getlocalename_l (category, thread_locale);
-# elif HAVE_SOLARIS114_LOCALES
+# if HAVE_SOLARIS114_LOCALES
/* Solaris >= 11.4. */
void *lcp = (*thread_locale)->core.data->lcp;
if (lcp != NULL)
# intl-thread-locale.m4
-# serial 12
+# serial 13
dnl Copyright (C) 2015-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[Define if the locale_t type is as on Solaris 11.4.])
fi
- dnl Solaris 12 will maybe provide getlocalename_l. If it does, it will
- dnl improve the implementation of gl_locale_name_thread(), by removing
- dnl the use of undocumented structures.
- case "$gt_cv_func_uselocale_works" in
- *yes)
- AC_CHECK_FUNCS([getlocalename_l])
- ;;
- esac
-
dnl This code is for platforms where the locale_t type does not provide access
dnl to the name of each locale category. This code has the drawback that it
dnl requires the gnulib overrides of 'newlocale', 'duplocale', 'freelocale',