From: Bruno Haible Date: Wed, 24 Jun 2026 17:05:44 +0000 (+0200) Subject: tests: Add comments. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4ee9f02b2fcbdb5b7af5edee574584aa97d13c5;p=thirdparty%2Fgettext.git tests: Add comments. * gettext-tools/tests/tstgettext.c (setlocale): Add comment, from gettext-tools/tests/plural-1-prg.c. * gettext-tools/tests/tstngettext.c (setlocale): Likewise. --- diff --git a/gettext-tools/tests/tstgettext.c b/gettext-tools/tests/tstgettext.c index 1eff1b9c3..56e3e9c66 100644 --- a/gettext-tools/tests/tstgettext.c +++ b/gettext-tools/tests/tstgettext.c @@ -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 diff --git a/gettext-tools/tests/tstngettext.c b/gettext-tools/tests/tstngettext.c index cc1c2d11c..058544d39 100644 --- a/gettext-tools/tests/tstngettext.c +++ b/gettext-tools/tests/tstngettext.c @@ -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