* locale/programs/ld-ctype.c (allocate_arrays): Complete last
patch. Use wch instead of idx to compute index.
Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
1999-11-26 Ulrich Drepper <drepper@cygnus.com>
+ * locale/programs/ld-ctype.c (allocate_arrays): Complete last
+ patch. Use wch instead of idx to compute index.
+ Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
+
* inet/rcmd.c (ruserok): Use iruserok2 not iruserok.
* locale/iso-3166.def: Update from latest official list.
if (wch != ILLEGAL_CHAR_VALUE)
{
/* Store the value. */
- size_t nr = idx % ctype->plane_size;
+ size_t nr = wch % ctype->plane_size;
size_t depth = 0;
- while (ctype->names[nr + depth * ctype->plane_size] != nr)
+ while (ctype->names[nr + depth * ctype->plane_size] != wch)
++depth;
assert (depth < ctype->plane_cnt);