diff options
Diffstat (limited to 'intl')
-rw-r--r-- | intl/tst-gettext.c | 1 | ||||
-rw-r--r-- | intl/tst-translit.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/intl/tst-gettext.c b/intl/tst-gettext.c index a83b1d25bd..1f5e6f1918 100644 --- a/intl/tst-gettext.c +++ b/intl/tst-gettext.c @@ -76,6 +76,7 @@ main (int argc, char *argv[]) setenv ("LC_CTYPE", "non-existing-locale", 1); setenv ("LANG", "non-existing-locale", 1); setlocale (LC_CTYPE, "de_DE.ISO-8859-1"); + setlocale (LC_MESSAGES, "de_DE.ISO-8859-1"); unsetenv ("OUTPUT_CHARSET"); /* This is the name of the existing domain with a catalog for the LC_MESSAGES category. */ diff --git a/intl/tst-translit.c b/intl/tst-translit.c index 5d42ae3371..3fa8d4cdd3 100644 --- a/intl/tst-translit.c +++ b/intl/tst-translit.c @@ -18,6 +18,7 @@ Boston, MA 02111-1307, USA. */ #include <libintl.h> +#include <locale.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -31,6 +32,7 @@ main (void) setenv ("LANGUAGE", "existing-locale", 1); unsetenv ("OUTPUT_CHARSET"); + setlocale (LC_ALL, "en_US.ANSI_X3.4-1968"); textdomain ("translit"); bindtextdomain ("translit", OBJPFX "domaindir"); |