]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Fix internationalization problems on native Windows.
authorBruno Haible <bruno@clisp.org>
Mon, 27 May 2024 20:33:33 +0000 (22:33 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 31 May 2024 22:05:11 +0000 (00:05 +0200)
* doc/posix-functions/setlocale.texi: Clarify the deficiency of
setlocale() on native Windows.
* modules/dfa-tests (Depends-on): Add setlocale.
* modules/hard-locale-tests (Depends-on): Likewise.
* modules/localcharset-tests (Depends-on): Likewise.
* modules/nstrftime-tests (Depends-on): Likewise.

ChangeLog
doc/posix-functions/setlocale.texi
modules/dfa-tests
modules/hard-locale-tests
modules/localcharset-tests
modules/nstrftime-tests

index 09bac4cd08ec2c752b5169c654c71cd2abe2e2a3..b191bca752ecf51e896edd3989be7d292ea01383 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-05-27  Bruno Haible  <bruno@clisp.org>
+
+       tests: Fix internationalization problems on native Windows.
+       * doc/posix-functions/setlocale.texi: Clarify the deficiency of
+       setlocale() on native Windows.
+       * modules/dfa-tests (Depends-on): Add setlocale.
+       * modules/hard-locale-tests (Depends-on): Likewise.
+       * modules/localcharset-tests (Depends-on): Likewise.
+       * modules/nstrftime-tests (Depends-on): Likewise.
+
 2024-05-27  Bruno Haible  <bruno@clisp.org>
 
        parse-datetime tests: Avoid failure on native Windows.
index 6e232200f82125a0fb1e7af7536320a7fe34a6bb..2798e224cbea3b1ef17817b922464e4c992ff0cf 100644 (file)
@@ -9,9 +9,9 @@ Gnulib module: setlocale, setlocale-null
 Portability problems fixed by Gnulib module @code{setlocale}:
 @itemize
 @item
-On Windows platforms (excluding Cygwin), @code{setlocale(@var{category},NULL)}
-ignores the environment variables @code{LC_ALL}, @code{@var{category}}, and
-@code{LANG}.
+On Windows platforms (excluding Cygwin), @code{setlocale(@var{category},"")}
+and @code{setlocale(@var{category},NULL)} both ignore the environment variables
+@code{LC_ALL}, @code{@var{category}}, and @code{LANG}.
 @item
 On Windows platforms (excluding Cygwin) and Cygwin 1.5.x,
 @code{setlocale(LC_ALL,@var{name})} succeeds and sets the LC_CTYPE category to
index 42606e8781fac11c26639666bca67249f06c3346..097c7a75ea9716bfd1f021b1eb34b20c282e3069 100644 (file)
@@ -11,6 +11,7 @@ stdlib
 string
 unistd
 regex
+setlocale
 test-framework-sh
 
 configure.ac:
index e4bc65a2564f2b49d02cd9c4ba8990f40766ee21..cac960621f7f9de8b8ccab9033877010b2b49d55 100644 (file)
@@ -4,6 +4,7 @@ tests/locale.c
 m4/musl.m4
 
 Depends-on:
+setlocale
 
 configure.ac:
 gl_MUSL_LIBC
index cb84f2cdc7e57549f8dd6d6ce6e6283e3858774c..3f2dde6dfdd63578ea9aa4a1a6a352951cd4d75c 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-localcharset.c
 
 Depends-on:
+setlocale
 
 configure.ac:
 
index ed2430accde299641451e24b26442accbefa4ce5..52b99aa80236079706864d0fc3864c7dee397428 100644 (file)
@@ -6,6 +6,7 @@ Depends-on:
 atoll
 c99
 intprops
+setlocale
 strerror
 
 configure.ac: