This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
gconv_open patch (1)
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: gconv_open patch (1)
- From: Bruno Haible <haible at ilog dot fr>
- Date: Wed, 12 Jul 2000 19:34:44 +0200 (CEST)
During the second installation step of glibc
$ LANG=de_DE.UTF-8 make localedata/install-locales
localedef dumped core for the uk_UA locale. Turns out this was during
gettext of the "Computing table size for collation table might take a
while..." message, because for the conversion descriptor from
"ISO-8859-1//" to "UTF-8//TRANSLIT" the fields __steps[0].__data and
__steps[1].__data were uninitialized.
2000-07-12 Bruno Haible <haible@clisp.cons.org>
* iconv/gconv_open.c (__gconv_open): Initialize
result->__steps[cnt].__data.
*** glibc-20000706/iconv/gconv_open.c.bak Mon Jul 3 16:39:26 2000
--- glibc-20000706/iconv/gconv_open.c Wed Jul 12 02:18:32 2000
***************
*** 255,260 ****
--- 255,262 ----
}
break;
}
+
+ result->__steps[cnt].__data = &result->__data[cnt];
}
/* Now handle the last entry. */
***************
*** 306,311 ****
--- 308,315 ----
}
break;
}
+
+ result->__steps[cnt].__data = &result->__data[cnt];
}
if (res != __GCONV_OK)