This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
gettext testsuite tweak
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: gettext testsuite tweak
- From: Bruno Haible <haible at ilog dot fr>
- Date: Sat, 6 May 2000 23:12:08 +0200 (MET DST)
During "make check" with OUTPUT_CHARSET=UTF-8, tst-gettext.sh fails because
gettext returns the translations in UTF-8, and they are compared against the
original translations in ISO-8859-1. To avoid this failure, here is a fix.
2000-05-06 Bruno Haible <haible@clisp.cons.org>
* intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
OUTPUT_CHARSET environment variables.
*** intl/tst-gettext.c.bak Sat Jan 22 06:44:24 2000
--- intl/tst-gettext.c Sat May 6 12:36:03 2000
***************
*** 68,74 ****
--- 68,76 ----
setenv ("LANGUAGE", "existing-locale", 1);
setenv ("LC_ALL", "non-existing-locale", 1);
setenv ("LC_MESSAGES", "non-existing-locale", 1);
+ setenv ("LC_CTYPE", "non-existing-locale", 1);
setenv ("LANG", "non-existing-locale", 1);
+ unsetenv ("OUTPUT_CHARSET");
/* This is the name of the existing domain with a catalog for the
LC_MESSAGES category. */
textdomain ("existing-domain");