bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build failure in get text-0.22.3 on MacOS Sonoma


From: Bruno Haible
Subject: Re: Build failure in get text-0.22.3 on MacOS Sonoma
Date: Tue, 24 Oct 2023 13:11:44 +0200

Hi,

John Dykstra wrote:
> is not built from /libtextstyle/lib/iconv-ostream.c because HAVE_ICONV is 
> false.  It is false because this test case in libtextstyle/configure fails:
> 
>    /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
> |      successful returns.  This is even documented in
> |      
> <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html>
>  */
> |   {
> |     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
> |     if (cd_utf8_to_88591 != (iconv_t)(-1))
> |       {
> |         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
> |         char buf[10];
> |         ICONV_CONST char *inptr = input;
> |         size_t inbytesleft = strlen (input);
> |         char *outptr = buf;
> |         size_t outbytesleft = sizeof (buf);
> |         size_t res = iconv (cd_utf8_to_88591,
> |                             &inptr, &inbytesleft,
> |                             &outptr, &outbytesleft);
> |         if (res == 0)
> |           result |= 1;
> |         iconv_close (cd_utf8_to_88591);
> |       }
> |   }

Thanks for the report. Can you please look for details in the config.log
file, after "checking for working iconv..." ? I'd like to know whether the
test program could not compile, could not link, ran and crashed, or ran
and returned an exit code, and which exit code.

> The build completes successfully if configure is hacked to delete that test 
> case.

But with a broken iconv() function, the built binaries likely will not work as
expected.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]