summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-06-19 10:50:30 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:13:24 +0200
commitdb05a6df96c9bf1f1a0943dc19e95f40f2b12742 (patch)
tree985957510c84cd350d0ae69c8956f0d4c759a83a
parent596b8c096bc61a3139e333d59cc032e54aa439e3 (diff)
downloadexternal_gettext-db05a6df96c9bf1f1a0943dc19e95f40f2b12742.zip
external_gettext-db05a6df96c9bf1f1a0943dc19e95f40f2b12742.tar.gz
external_gettext-db05a6df96c9bf1f1a0943dc19e95f40f2b12742.tar.bz2
Use a platform dependent locale name.
-rw-r--r--gettext-tools/tests/ChangeLog8
-rwxr-xr-xgettext-tools/tests/recode-sr-latin-211
2 files changed, 18 insertions, 1 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index 81db331..35c3a20 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,5 +1,13 @@
2006-06-17 Bruno Haible <bruno@clisp.org>
+ * recode-sr-latin-2 (LOCALE_JA_EUCJP): Determine locale name depending
+ on the platform.
+ Needed for NetBSD 3.0, where testlocale always succeeds. (On NetBSD,
+ setlocale always works, but for invalid locales nl_locale(CODESET)
+ returns "646".)
+
+2006-06-17 Bruno Haible <bruno@clisp.org>
+
* gettext-4: Use a french locale instead of a german locale. Pass
the locale name as an argument to gettext-4-prg.
* gettext-4-prg.c (main): Use the locale name passed as argument.
diff --git a/gettext-tools/tests/recode-sr-latin-2 b/gettext-tools/tests/recode-sr-latin-2
index 0c511ed..84cc84e 100755
--- a/gettext-tools/tests/recode-sr-latin-2
+++ b/gettext-tools/tests/recode-sr-latin-2
@@ -8,7 +8,16 @@ tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
# Test whether a specific EUC-JP locale is installed.
-: ${LOCALE_JA_EUCJP=ja_JP.EUC-JP}
+case "$host_os" in
+ aix*)
+ LOCALE_JA_EUCJP=ja_JP ;;
+ hpux* | osf* | netbsd*)
+ LOCALE_JA_EUCJP=ja_JP.eucJP ;;
+ irix* | freebsd* | darwin*)
+ LOCALE_JA_EUCJP=ja_JP.EUC ;;
+ *)
+ LOCALE_JA_EUCJP=ja_JP.EUC-JP ;;
+esac
if test $LOCALE_JA_EUCJP != none; then
LC_ALL=$LOCALE_JA_EUCJP ./testlocale 2>/dev/null
case $? in