[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: msgfmt: Cannot convert from "ASCII" to "UTF-8" on gettext-22.x (gett
From: |
alphons |
Subject: |
Re: msgfmt: Cannot convert from "ASCII" to "UTF-8" on gettext-22.x (gettext-21.1 no problem) |
Date: |
Fri, 22 Sep 2023 17:20:09 +0200 |
>thanks for the help, i will figure this out (eventually) ;-)
Okay, shortcut:
/sources/gettext-0.22.2/gettext-runtime/m4/iconv.m4
--
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
provided. */
{
/* Try standardized names. */
iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
/* Try IRIX, OSF/1 names. */
iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
/* Try AIX names. */
iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
/* Try HP-UX names. */
iconv_t cd4 = iconv_open ("utf8", "eucJP");
if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
&& cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
result |= 16;
if (cd1 != (iconv_t)(-1))
iconv_close (cd1);
if (cd2 != (iconv_t)(-1))
iconv_close (cd2);
if (cd3 != (iconv_t)(-1))
iconv_close (cd3);
if (cd4 != (iconv_t)(-1))
iconv_close (cd4);
}
--
On my build system (and many others I guess), this makes no sense.
Japan is a great country, but when not installed the Japanese converters, this
test result in 16.
And configure concludes there is no working iconv(), which is in fact,
incorrect.
-Alphons.