X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-striconveha.c;h=3d833ac169b93b0aadbe849297fca7f61d992e5f;hb=e7e8418d964ccdc0f1af799ee847d5b93a32b2e4;hp=f105161e767fd2d742e403cd9e0ab4a04b3ff693;hpb=355bf88579db3e71cb9b64e7f83c5c762f889edd;p=gnulib.git diff --git a/tests/test-striconveha.c b/tests/test-striconveha.c index f105161e7..3d833ac16 100644 --- a/tests/test-striconveha.c +++ b/tests/test-striconveha.c @@ -311,6 +311,8 @@ main () } } + /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2. */ +# if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun) /* Test conversions from autodetect_jp to UTF-8. */ for (h = 0; h < SIZEOF (handlers); h++) { @@ -402,6 +404,7 @@ main () free (result); } } +# endif # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 /* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */ @@ -544,6 +547,8 @@ main () free (result); } + /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2. */ +# if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun) /* Test conversions from autodetect_jp to UTF-8. */ for (h = 0; h < SIZEOF (handlers); h++) { @@ -575,6 +580,7 @@ main () ASSERT (strcmp (result, expected) == 0); free (result); } +# endif # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 /* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */