+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
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