]> Savannah Git Hosting - gnulib.git/commitdiff
localename-unsafe: Remove support for nonexistent Solaris 12.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Feb 2025 07:37:10 +0000 (08:37 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Feb 2025 07:37:10 +0000 (08:37 +0100)
* m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Remove test for
getlocalename_l.
* lib/localename-unsafe.c: Ignore HAVE_GETLOCALENAME_L.

ChangeLog
lib/localename-unsafe.c
m4/intl-thread-locale.m4

index 4b8faaeb184b559260879594d9707bdb53e3dcbf..609d352b511df053bbe3c28807b34a42e18e5644 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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+.
index ebdf2e949190a60a3e6a3814fc8d3c26e1293cb3..97d5f9af92af1f64dd786b6ac12b21477a8bfe1c 100644 (file)
 #  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
@@ -3080,10 +3077,7 @@ gl_locale_name_thread_unsafe (int category, _GL_UNUSED const char *categoryname)
           }
         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)
index 9cdbff2c20828d1fdd175245a3735b09e5f5e99b..aff83a7ad6d52f993e65b100b969679011881c42 100644 (file)
@@ -1,5 +1,5 @@
 # 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,
@@ -118,15 +118,6 @@ int main ()
       [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',