From: Bruno Haible Date: Mon, 19 Jun 2006 10:50:30 +0000 (+0000) Subject: Use a platform dependent locale name. X-Git-Tag: v0.15~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db05a6df96c9bf1f1a0943dc19e95f40f2b12742;p=thirdparty%2Fgettext.git Use a platform dependent locale name. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 81db331d3..35c3a20e4 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,11 @@ +2006-06-17 Bruno Haible + + * 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 * gettext-4: Use a french locale instead of a german locale. Pass diff --git a/gettext-tools/tests/recode-sr-latin-2 b/gettext-tools/tests/recode-sr-latin-2 index 0c511ed4a..84cc84e5a 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