]> Savannah Git Hosting - gnulib.git/commit
newlocale: Work around macOS, NetBSD, Solaris 11 OpenIndiana bug.
authorBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2025 14:24:54 +0000 (15:24 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2025 14:43:39 +0000 (15:43 +0100)
commitbc2d70ee57c62739cb15d5d06aad6982306d05ff
tree65d10a0749138f4cf3f9da9515a04cf5b4a99f1c
parente8618f66fa25932f1121632b52044abb27a6ecec
newlocale: Work around macOS, NetBSD, Solaris 11 OpenIndiana bug.

* m4/newlocale.m4 (gl_FUNC_NEWLOCALE): Test for the "null base" bug.
Set REPLACE_NEWLOCALE to 1 if it has the bug.
* lib/newlocale.c (newlocale): Add alternative implementation that uses
the system's newlocale().
* modules/newlocale (configure.ac): Consider REPLACE_NEWLOCALE.
* tests/test-newlocale.c: Include <langinfo.h>.
(main): Verify fix for the "null base" bug.
* modules/newlocale-tests (configure.ac): Test for nl_langinfo_l.
* doc/posix-functions/newlocale.texi: Mention the "null base" bug.
ChangeLog
doc/posix-functions/newlocale.texi
lib/newlocale.c
m4/newlocale.m4
modules/newlocale
modules/newlocale-tests
tests/test-newlocale.c