diff options
Diffstat (limited to 'intl')
-rw-r--r-- | intl/Depend | 1 | ||||
-rw-r--r-- | intl/tst-gettext.c | 2 | ||||
-rwxr-xr-x | intl/tst-gettext.sh | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/intl/Depend b/intl/Depend index e35d3258a3..981111e299 100644 --- a/intl/Depend +++ b/intl/Depend @@ -1 +1,2 @@ iconvdata +localedata diff --git a/intl/tst-gettext.c b/intl/tst-gettext.c index b897d71582..d9f97187f7 100644 --- a/intl/tst-gettext.c +++ b/intl/tst-gettext.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> @@ -70,6 +71,7 @@ main (int argc, char *argv[]) setenv ("LC_MESSAGES", "non-existing-locale", 1); setenv ("LC_CTYPE", "non-existing-locale", 1); setenv ("LANG", "non-existing-locale", 1); + setlocale (LC_CTYPE, "de_DE"); unsetenv ("OUTPUT_CHARSET"); /* This is the name of the existing domain with a catalog for the LC_MESSAGES category. */ diff --git a/intl/tst-gettext.sh b/intl/tst-gettext.sh index 9d2151f6b6..9fb8b432c7 100755 --- a/intl/tst-gettext.sh +++ b/intl/tst-gettext.sh @@ -23,6 +23,8 @@ objpfx=$2 GCONV_PATH=${common_objpfx}iconvdata export GCONV_PATH +LOCPATH=${common_objpfx}localedata +export LOCPATH # Generate the test data. test -d ${objpfx}domaindir || mkdir ${objpfx}domaindir |