+2001-05-23 Bruno Haible <haible@clisp.cons.org>
+
+ * linebreak.c (mbs_possible_linebreaks): Avoid broken EUC-KR
+ conversion in glibc-2.1.
+ (mbs_width_linebreaks): Likewise.
+
2001-05-02 Bruno Haible <haible@clisp.cons.org>
* linebreak.c (iconv_string_keeping_offsets): Work around a glibc-2.1
else
{
#if HAVE_ICONV
- iconv_t to_utf8 = iconv_open (UTF8_NAME, encoding);
+ iconv_t to_utf8;
+ /* Avoid glibc-2.1 bug with EUC-KR. */
+# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION
+ if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0))
+ to_utf8 = (iconv_t)(-1);
+ else
+# endif
+ to_utf8 = iconv_open (UTF8_NAME, encoding);
if (to_utf8 != (iconv_t)(-1))
{
/* Determine the length of the resulting UTF-8 string. */
else
{
#if HAVE_ICONV
- iconv_t to_utf8 = iconv_open (UTF8_NAME, encoding);
+ iconv_t to_utf8;
+ /* Avoid glibc-2.1 bug with EUC-KR. */
+# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION
+ if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0))
+ to_utf8 = (iconv_t)(-1);
+ else
+# endif
+ to_utf8 = iconv_open (UTF8_NAME, encoding);
if (to_utf8 != (iconv_t)(-1))
{
/* Determine the length of the resulting UTF-8 string. */
+2001-05-23 Bruno Haible <haible@clisp.cons.org>
+
+ * write-po.c (wrap): Avoid broken EUC-KR conversion in glibc-2.1.
+
2001-05-21 Bruno Haible <haible@clisp.cons.org>
* xgettext.c (construct_header): Replace 8-bit with 8bit.
/* Write a PO file in old format, with extraneous backslashes. */
conv = (iconv_t)(-1);
else
+ /* Avoid glibc-2.1 bug with EUC-KR. */
+# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION
+ if (strcmp (charset, "EUC-KR") == 0)
+ conv = (iconv_t)(-1);
+ else
+# endif
/* Use iconv() to parse multibyte characters. */
conv = iconv_open ("UTF-8", charset);
#endif