Commit f6af6db65754a7556c90672fd3abc1e20fc53e34

Bruno Haible 2025-02-13T23:01:52

newlocale: New module. * lib/locale.in.h (newlocale): Consider GNULIB_NEWLOCALE. Declare if not declared. Don't define HAVE_WORKING_NEWLOCALE. * lib/newlocale.c: New file. * m4/newlocale.m4: New file. * m4/locale_h.m4 (gl_LOCALE_H_REQUIRE_DEFAULTS): Initialize GNULIB_NEWLOCALE. * modules/locale-h (Makefile.am): Substitute GNULIB_NEWLOCALE. * modules/newlocale: New file. * tests/test-locale-h-c++.cc: Check declaration of newlocale. * tests/test-localename.c: Ignore HAVE_WORKING_NEWLOCALE. * doc/posix-functions/newlocale.texi: Mention the new module.