Hi Tom, > In 8c96eb80bd calls to iconv functions were added outside the HAVE_ICONV > block. > > test-striconveh.c will fail to build if iconv is unavailable: > test-striconveh.c: In function 'main': > test-striconveh.c:1113:7: error: 'cd_ascii_to_88591' undeclared (first > use in this function) > if (cd_ascii_to_88591 != (iconv_t)(-1)) > ^
Thanks for the report. This patch should fix it. 2019-07-09 Bruno Haible <br...@clisp.org> striconveh test: Fix a compilation failure when iconv is not available. Reported by Tom G. Christensen <t...@jupiterrise.com>. * tests/test-striconveh.c (main): Move iconv_close invocations inside HAVE_ICONV. diff --git a/tests/test-striconveh.c b/tests/test-striconveh.c index ed41884..c2fb8bb 100644 --- a/tests/test-striconveh.c +++ b/tests/test-striconveh.c @@ -1106,8 +1106,6 @@ main () free (result); } -#endif - /* -------------------------------- Done. -------------------------------- */ if (cd_ascii_to_88591 != (iconv_t)(-1)) @@ -1116,5 +1114,7 @@ main () if (cd_utf7_to_utf8 != (iconv_t)(-1)) iconv_close (cd_utf7_to_utf8); +#endif + return 0; }