1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

getlocalename_l-unsafe-limited: Extend to more platforms.

* modules/getlocalename_l-unsafe-limited (Description): Update platforms
list.
(Files): Add m4/intl-thread-locale.m4.
(Depends-on): Add setlocale-fixes.
(configure.ac): Invoke gl_FUNC_GETLOCALENAME_L_UNSAFE and
gl_PREREQ_GETLOCALENAME_L_UNSAFE. Update platforms list.
This commit is contained in:
Bruno Haible
2025-07-15 10:56:38 +02:00
parent d0808e27aa
commit c95444f726
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,13 @@
2025-07-15 Bruno Haible <bruno@clisp.org>
getlocalename_l-unsafe-limited: Extend to more platforms.
* modules/getlocalename_l-unsafe-limited (Description): Update platforms
list.
(Files): Add m4/intl-thread-locale.m4.
(Depends-on): Add setlocale-fixes.
(configure.ac): Invoke gl_FUNC_GETLOCALENAME_L_UNSAFE and
gl_PREREQ_GETLOCALENAME_L_UNSAFE. Update platforms list.
2025-07-15 Bruno Haible <bruno@clisp.org>
getlocalename_l-unsafe: Make configuration more robust.

View File

@@ -1,20 +1,24 @@
Description:
getlocalename_l_unsafe() function: return name of a single locale category.
Only works on a limited set of platforms: on NetBSD and Solaris.
Only works on a limited set of platforms: all except OpenBSD, AIX, Android.
Files:
lib/getlocalename_l-unsafe.h
lib/getlocalename_l-unsafe.c
m4/getlocalename_l.m4
m4/intl-thread-locale.m4
Depends-on:
locale-h
setlocale-fixes
setlocale-null
configure.ac:
gl_FUNC_GETLOCALENAME_L_UNSAFE
gl_PREREQ_GETLOCALENAME_L_UNSAFE
AC_REQUIRE([AC_CANONICAL_HOST])
gl_CONDITIONAL([GL_COND_OBJ_GETLOCALENAME_L_UNSAFE_LIMITED],
[case "$host_os" in netbsd* | solaris*) true;; *) false;; esac])
[case "$host_os" in openbsd* | aix* | *-android*) false;; *) true;; esac])
Makefile.am:
if GL_COND_OBJ_GETLOCALENAME_L_UNSAFE_LIMITED