]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Rename module locale to locale-h.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:14:18 +0000 (23:14 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Dec 2024 22:14:18 +0000 (23:14 +0100)
* 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.

25 files changed:
ChangeLog
doc/posix-headers/locale.texi
modules/c-nstrftime
modules/c-strtod
modules/c-strtof
modules/c-strtold
modules/dfa
modules/duplocale
modules/locale
modules/locale-c++-tests [deleted file]
modules/locale-h [new file with mode: 0644]
modules/locale-h-c++-tests [new file with mode: 0644]
modules/locale-h-tests [moved from modules/locale-tests with 55% similarity]
modules/localeconv
modules/localename
modules/localename-tests
modules/localename-unsafe
modules/localename-unsafe-limited
modules/posixcheck
modules/setlocale
modules/setlocale-null
modules/setlocale-null-unlocked
tests/test-locale-h-c++.cc [moved from tests/test-locale-c++.cc with 100% similarity]
tests/test-locale-h-c++2.cc [moved from tests/test-locale-c++2.cc with 100% similarity]
tests/test-locale-h.c [moved from tests/test-locale.c with 100% similarity]

index dfd3baac6b8f39a732e404d2efc523cc1462ba7f..23d806b2d741edc613c78365ba5237ee58dab697 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+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.
index 966a34f40c0e33e4c714abd28a47d2e2c74d7d05..0ba18268320842fcd7711bff7e1c60141b9119c6 100644 (file)
@@ -3,8 +3,8 @@
 
 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
index 25c182ab13236e8726d876037ed29551a995ed53..86a9d89f0add01bc9d9ca45506e96c46f86c007f 100644 (file)
@@ -16,7 +16,7 @@ errno-h
 extensions
 intprops
 libc-config
-locale
+locale-h
 stdbool
 stdckdint
 time_rz
index 2ca8f2a2f2e4944c0fafff9d3680bd1806b762ad..02d5b07343868a11978d9bcf2a4cc044c33679ea 100644 (file)
@@ -10,7 +10,7 @@ m4/intl-thread-locale.m4
 Depends-on:
 c99
 extensions
-locale
+locale-h
 c-ctype
 strtod
 
index ec6251fd9e1c3158d3ada6186ca0e1afd30db630..de6e38182f05db77889b8197627f4a167347126a 100644 (file)
@@ -11,7 +11,7 @@ m4/intl-thread-locale.m4
 Depends-on:
 c99
 extensions
-locale
+locale-h
 c-ctype
 strtof
 
index 0ec27d7983105142b9c2fb2f8cecee986d07c0b0..55b64ec2aea5a25af3b5653a7c52541f18630d86 100644 (file)
@@ -11,7 +11,7 @@ m4/intl-thread-locale.m4
 Depends-on:
 c99
 extensions
-locale
+locale-h
 c-ctype
 strtold
 
index e9461ded9865bd6f43d7aaabca9c730ff8cbd889..569de68f770da35cf7624f2a1fcd19309ece55c1 100644 (file)
@@ -21,7 +21,7 @@ flexmember
 gettext-h
 gnulib-i18n
 idx
-locale
+locale-h
 mbrtoc32-regular
 mbszero
 regex
index 7c1a8730a5cbadcea2df82b86d6568701ca2fe9b..9914007b8feac55f00d17f581ac7f3a320a3cbfc 100644 (file)
@@ -6,7 +6,7 @@ lib/duplocale.c
 m4/duplocale.m4
 
 Depends-on:
-locale
+locale-h
 setlocale-null  [test $HAVE_DUPLOCALE = 1 && test $REPLACE_DUPLOCALE = 1]
 
 configure.ac:
index df0237723d712f76bde3929d5275f0abb1ae0aa5..23c529c9f04d74b8d47142cb0a7b9b8aa27a3384 100644 (file)
@@ -1,59 +1,20 @@
 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>
@@ -62,4 +23,3 @@ License:
 LGPLv2+
 
 Maintainer:
-all
diff --git a/modules/locale-c++-tests b/modules/locale-c++-tests
deleted file mode 100644 (file)
index 8346327..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-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
diff --git a/modules/locale-h b/modules/locale-h
new file mode 100644 (file)
index 0000000..df02377
--- /dev/null
@@ -0,0 +1,65 @@
+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
diff --git a/modules/locale-h-c++-tests b/modules/locale-h-c++-tests
new file mode 100644 (file)
index 0000000..15b2014
--- /dev/null
@@ -0,0 +1,20 @@
+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
similarity index 55%
rename from modules/locale-tests
rename to modules/locale-h-tests
index 5c7c032fa8a3cd7e84840d4670fcb256cbd40ecf..440a80deac0056f54f32b422918e3d4a286d19aa 100644 (file)
@@ -1,13 +1,13 @@
 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
index 3f22cafa3609257ae2a5a42e7f2ab52efb3334eb..610a0cb0a90dd85946fb8577aa3911f62053e71f 100644 (file)
@@ -7,7 +7,7 @@ lib/localeconv.c
 m4/localeconv.m4
 
 Depends-on:
-locale
+locale-h
 
 configure.ac:
 gl_FUNC_LOCALECONV
index 576e0451e310a00a06f839b657ec170d567b8807..6f419f11b3b1c56eae5be7c576d2257fe782287c 100644 (file)
@@ -7,7 +7,7 @@ lib/localename.c
 lib/struniq.h
 
 Depends-on:
-locale
+locale-h
 localename-unsafe
 flexmember
 lock
index cf4d5868065d06d71db4e30a46874e761ae0a043..6a3d522fce4b767cd4184f25708c96c38aa90704 100644 (file)
@@ -9,7 +9,7 @@ m4/musl.m4
 m4/windows-rc.m4
 
 Depends-on:
-locale
+locale-h
 setenv
 unsetenv
 setlocale
index 6f9437c661cf92c7118a5d937d7ca2004059ac1d..c19a838a9565000322c22de57aaaaa9694f4873f 100644 (file)
@@ -18,7 +18,7 @@ Depends-on:
 localename-unsafe-limited
 extensions
 stdbool
-locale
+locale-h
 flexmember
 free-posix
 strdup
index b9f845bfbd58c7e0e853039350bdbfd57b384310..74bf0d56978f684cc5d6ecc0a1513e8f0af490f0 100644 (file)
@@ -12,7 +12,7 @@ m4/lcmessage.m4
 
 Depends-on:
 extensions
-locale
+locale-h
 setlocale-null-unlocked
 
 configure.ac:
index 01fa5eccae7a9d017c0185a7af234be5cf2d80be..ef52102c67760ffcede6e2fe36721d37edf63861 100644 (file)
@@ -16,7 +16,7 @@ glob-h
 iconv-h
 inttypes-h-incomplete
 langinfo-h
-locale
+locale-h
 malloc-h
 math
 monetary
index 0b2c8e048602dc9268707b7afb5e5e178d6b1c4c..c59ca1f41e4ff8baea82aa3362d5cc32ce16d6b9 100644 (file)
@@ -6,7 +6,7 @@ lib/setlocale.c
 m4/setlocale.m4
 
 Depends-on:
-locale
+locale-h
 localename      [test $NEED_SETLOCALE_IMPROVED = 1]
 setlocale-null  [test $NEED_SETLOCALE_MTSAFE = 1]
 
index 782e29ad8de008ae239878ff116f68e4bf0eb6c8..872d63e86b6833c0b292c251ec95bfd00a336917 100644 (file)
@@ -11,7 +11,7 @@ m4/threadlib.m4
 m4/visibility.m4
 
 Depends-on:
-locale
+locale-h
 snippet/arg-nonnull
 setlocale-null-unlocked
 
index 21d961150133d1448986d4118d391ad3abba9586..7b734b8ec373a7bcbfbcbbdf894149973c9ecbe2 100644 (file)
@@ -7,7 +7,7 @@ lib/setlocale_null.h
 lib/setlocale_null-unlocked.c
 
 Depends-on:
-locale
+locale-h
 snippet/arg-nonnull
 
 configure.ac:
similarity index 100%
rename from tests/test-locale.c
rename to tests/test-locale-h.c