From: Bruno Haible Date: Fri, 9 Jun 2006 20:28:32 +0000 (+0000) Subject: Skip the test on systems that don't have an EUC-JP locale. X-Git-Tag: v0.15~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc0f8527dda61bff80d214a981a97953bce3cb33;p=thirdparty%2Fgettext.git Skip the test on systems that don't have an EUC-JP locale. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 23e465f5e..466a2c1c5 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,7 @@ +2006-06-04 Bruno Haible + + * recode-sr-latin-2: Skip the test on MacOS X and BeOS. + 2006-06-04 Bruno Haible * lang-php: Skip the test if php does not have the 'gettext' module diff --git a/gettext-tools/tests/recode-sr-latin-2 b/gettext-tools/tests/recode-sr-latin-2 index aea706da7..0c511ed4a 100755 --- a/gettext-tools/tests/recode-sr-latin-2 +++ b/gettext-tools/tests/recode-sr-latin-2 @@ -26,6 +26,16 @@ if test $LOCALE_JA_EUCJP = none; then rm -fr $tmpfiles; exit 77 fi +# Test whether locale_charset() in this locale really returns EUC-JP. +# (On some systems, config.charset supports only UTF-8 locales.) +case "$host_os" in + darwin[56]*) ;; + darwin* | beos*) + echo "Skipping test: no EUC-JP locale is supported" + rm -fr $tmpfiles; exit 77 + ;; +esac + tmpfiles="$tmpfiles rec-srl-2.in" cat <<\EOF > rec-srl-2.in §ª§ã§á§â§Ñ§Ó§ß§Ú §Ñ§â§Ô§å§Þ§Ö§ß§ä§Ú §ã§å