* modules/locale-h: Renamed from modules/locale.
* modules/locale-h-tests: Renamed from modules/locale-tests.
* modules/locale-h-c++-tests: Renamed from modules/locale-c++-tests.
* tests/test-locale-h.c: Renamed from tests/test-locale.c.
* tests/test-locale-h-c++.cc: Renamed from tests/test-locale-c++.cc.
* tests/test-locale-h-c++2.cc: Renamed from tests/test-locale-c++2.cc.
* doc/posix-headers/locale.texi: Update.
* modules/* (Depends-on): Update.
* modules/locale: New file.
+2024-12-27 Bruno Haible <bruno@clisp.org>
+
+ Rename module locale to locale-h.
+ * modules/locale-h: Renamed from modules/locale.
+ * modules/locale-h-tests: Renamed from modules/locale-tests.
+ * modules/locale-h-c++-tests: Renamed from modules/locale-c++-tests.
+ * tests/test-locale-h.c: Renamed from tests/test-locale.c.
+ * tests/test-locale-h-c++.cc: Renamed from tests/test-locale-c++.cc.
+ * tests/test-locale-h-c++2.cc: Renamed from tests/test-locale-c++2.cc.
+ * doc/posix-headers/locale.texi: Update.
+ * modules/* (Depends-on): Update.
+ * modules/locale: New file.
+
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module langinfo to langinfo-h.
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html}
-Gnulib module: locale
-@mindex locale
+Gnulib module: locale-h
+@mindex locale-h
Portability problems fixed by Gnulib:
@itemize
extensions
intprops
libc-config
-locale
+locale-h
stdbool
stdckdint
time_rz
Depends-on:
c99
extensions
-locale
+locale-h
c-ctype
strtod
Depends-on:
c99
extensions
-locale
+locale-h
c-ctype
strtof
Depends-on:
c99
extensions
-locale
+locale-h
c-ctype
strtold
gettext-h
gnulib-i18n
idx
-locale
+locale-h
mbrtoc32-regular
mbszero
regex
m4/duplocale.m4
Depends-on:
-locale
+locale-h
setlocale-null [test $HAVE_DUPLOCALE = 1 && test $REPLACE_DUPLOCALE = 1]
configure.ac:
Description:
A <locale.h> that conforms to POSIX.
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'locale-h' instead.
+
Files:
-lib/locale.in.h
-m4/locale_h.m4
Depends-on:
-extensions
-gen-header
-include_next
-snippet/arg-nonnull
-snippet/c++defs
-snippet/warn-on-use
-stddef
+locale-h
configure.ac:
-gl_LOCALE_H
-gl_LOCALE_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
Makefile.am:
-BUILT_SOURCES += locale.h
-
-# We need the following in order to create <locale.h> when the system
-# doesn't have one that provides all definitions.
-locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
-@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
- $(gl_V_at)$(SED_HEADER_STDOUT) \
- -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
- -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
- -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
- -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
- -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
- -e 's/@''GNULIB_LOCALECONV''@/$(GNULIB_LOCALECONV)/g' \
- -e 's/@''GNULIB_SETLOCALE''@/$(GNULIB_SETLOCALE)/g' \
- -e 's/@''GNULIB_SETLOCALE_NULL''@/$(GNULIB_SETLOCALE_NULL)/g' \
- -e 's/@''GNULIB_DUPLOCALE''@/$(GNULIB_DUPLOCALE)/g' \
- -e 's/@''GNULIB_LOCALENAME_UNSAFE''@/$(GNULIB_LOCALENAME_UNSAFE)/g' \
- -e 's|@''HAVE_NEWLOCALE''@|$(HAVE_NEWLOCALE)|g' \
- -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \
- -e 's|@''HAVE_FREELOCALE''@|$(HAVE_FREELOCALE)|g' \
- -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
- -e 's|@''REPLACE_LOCALECONV''@|$(REPLACE_LOCALECONV)|g' \
- -e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \
- -e 's|@''REPLACE_NEWLOCALE''@|$(REPLACE_NEWLOCALE)|g' \
- -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
- -e 's|@''REPLACE_FREELOCALE''@|$(REPLACE_FREELOCALE)|g' \
- -e 's|@''REPLACE_STRUCT_LCONV''@|$(REPLACE_STRUCT_LCONV)|g' \
- -e 's|@''LOCALENAME_ENHANCE_LOCALE_FUNCS''@|$(LOCALENAME_ENHANCE_LOCALE_FUNCS)|g' \
- -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
- -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
- -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
- $(srcdir)/locale.in.h > $@-t
- $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += locale.h locale.h-t
Include:
<locale.h>
LGPLv2+
Maintainer:
-all
+++ /dev/null
-Files:
-tests/test-locale-c++.cc
-tests/test-locale-c++2.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-locale-c++
-check_PROGRAMS += test-locale-c++
-test_locale_c___SOURCES = test-locale-c++.cc test-locale-c++2.cc
-test_locale_c___LDADD = $(LDADD) $(SETLOCALE_LIB)
-endif
--- /dev/null
+Description:
+A <locale.h> that conforms to POSIX.
+
+Files:
+lib/locale.in.h
+m4/locale_h.m4
+
+Depends-on:
+extensions
+gen-header
+include_next
+snippet/arg-nonnull
+snippet/c++defs
+snippet/warn-on-use
+stddef
+
+configure.ac:
+gl_LOCALE_H
+gl_LOCALE_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += locale.h
+
+# We need the following in order to create <locale.h> when the system
+# doesn't have one that provides all definitions.
+locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
+@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
+ $(gl_V_at)$(SED_HEADER_STDOUT) \
+ -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+ -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
+ -e 's/@''GNULIB_LOCALECONV''@/$(GNULIB_LOCALECONV)/g' \
+ -e 's/@''GNULIB_SETLOCALE''@/$(GNULIB_SETLOCALE)/g' \
+ -e 's/@''GNULIB_SETLOCALE_NULL''@/$(GNULIB_SETLOCALE_NULL)/g' \
+ -e 's/@''GNULIB_DUPLOCALE''@/$(GNULIB_DUPLOCALE)/g' \
+ -e 's/@''GNULIB_LOCALENAME_UNSAFE''@/$(GNULIB_LOCALENAME_UNSAFE)/g' \
+ -e 's|@''HAVE_NEWLOCALE''@|$(HAVE_NEWLOCALE)|g' \
+ -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \
+ -e 's|@''HAVE_FREELOCALE''@|$(HAVE_FREELOCALE)|g' \
+ -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
+ -e 's|@''REPLACE_LOCALECONV''@|$(REPLACE_LOCALECONV)|g' \
+ -e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \
+ -e 's|@''REPLACE_NEWLOCALE''@|$(REPLACE_NEWLOCALE)|g' \
+ -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
+ -e 's|@''REPLACE_FREELOCALE''@|$(REPLACE_FREELOCALE)|g' \
+ -e 's|@''REPLACE_STRUCT_LCONV''@|$(REPLACE_STRUCT_LCONV)|g' \
+ -e 's|@''LOCALENAME_ENHANCE_LOCALE_FUNCS''@|$(LOCALENAME_ENHANCE_LOCALE_FUNCS)|g' \
+ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
+ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+ $(srcdir)/locale.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += locale.h locale.h-t
+
+Include:
+<locale.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all
--- /dev/null
+Files:
+tests/test-locale-h-c++.cc
+tests/test-locale-h-c++2.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-locale-h-c++
+check_PROGRAMS += test-locale-h-c++
+test_locale_h_c___SOURCES = test-locale-h-c++.cc test-locale-h-c++2.cc
+test_locale_h_c___LDADD = $(LDADD) $(SETLOCALE_LIB)
+endif
Files:
-tests/test-locale.c
+tests/test-locale-h.c
Depends-on:
assert-h
-locale-c++-tests
+locale-h-c++-tests
configure.ac:
gl_CHECK_FUNCS_ANDROID([newlocale], [[#include <locale.h>]])
Makefile.am:
-TESTS += test-locale
-check_PROGRAMS += test-locale
+TESTS += test-locale-h
+check_PROGRAMS += test-locale-h
m4/localeconv.m4
Depends-on:
-locale
+locale-h
configure.ac:
gl_FUNC_LOCALECONV
lib/struniq.h
Depends-on:
-locale
+locale-h
localename-unsafe
flexmember
lock
m4/windows-rc.m4
Depends-on:
-locale
+locale-h
setenv
unsetenv
setlocale
localename-unsafe-limited
extensions
stdbool
-locale
+locale-h
flexmember
free-posix
strdup
Depends-on:
extensions
-locale
+locale-h
setlocale-null-unlocked
configure.ac:
iconv-h
inttypes-h-incomplete
langinfo-h
-locale
+locale-h
malloc-h
math
monetary
m4/setlocale.m4
Depends-on:
-locale
+locale-h
localename [test $NEED_SETLOCALE_IMPROVED = 1]
setlocale-null [test $NEED_SETLOCALE_MTSAFE = 1]
m4/visibility.m4
Depends-on:
-locale
+locale-h
snippet/arg-nonnull
setlocale-null-unlocked
lib/setlocale_null-unlocked.c
Depends-on:
-locale
+locale-h
snippet/arg-nonnull
configure.ac: