]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Add comments.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jun 2026 17:05:44 +0000 (19:05 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 24 Jun 2026 17:05:44 +0000 (19:05 +0200)
* gettext-tools/tests/tstgettext.c (setlocale): Add comment, from
gettext-tools/tests/plural-1-prg.c.
* gettext-tools/tests/tstngettext.c (setlocale): Likewise.

gettext-tools/tests/tstgettext.c
gettext-tools/tests/tstngettext.c

index 1eff1b9c306efd563e8bc9fd3994e4a05e0e136c..56e3e9c66ed0b7425ea9f430a67455ec59ebe356 100644 (file)
@@ -43,6 +43,9 @@
 #undef _LIBINTL_H
 #include "libgnuintl.h"
 
+/* Disable the override of setlocale that libgnuintl.h activates on MacOS X
+   and Windows.  This test relies on the fake setlocale function in
+   setlocale.c.  */
 #if defined _WIN32 && !defined __CYGWIN__
 # undef setlocale
 # define setlocale fake_setlocale
index cc1c2d11ce83562b236313f66958d381ee601894..058544d391f1dcc71a3f7cfed36d91d4d0232ba3 100644 (file)
@@ -43,6 +43,9 @@
 #undef _LIBINTL_H
 #include "libgnuintl.h"
 
+/* Disable the override of setlocale that libgnuintl.h activates on MacOS X
+   and Windows.  This test relies on the fake setlocale function in
+   setlocale.c.  */
 #if defined _WIN32 && !defined __CYGWIN__
 # undef setlocale
 # define setlocale fake_setlocale