]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use a platform dependent locale name.
authorBruno Haible <bruno@clisp.org>
Mon, 19 Jun 2006 10:50:30 +0000 (10:50 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:24 +0000 (12:13 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/recode-sr-latin-2

index 81db331d32b0bc2df007aba10481f9832c2ab954..35c3a20e4c797344526c6e4f0046d90acf448797 100644 (file)
@@ -1,3 +1,11 @@
+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
index 0c511ed4ae5adfeabb6fba2f6f3e81f28d8443be..84cc84e5ac3923c924a4ed8863df1286aac45e4a 100755 (executable)
@@ -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