From: Ulrich Drepper Date: Sat, 27 Nov 1999 02:43:16 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/pre-glibc-2_1_3~126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1c9ad82a03bfda99e032a22297973bc4c773302;p=platform%2Fupstream%2Fglibc.git Update. * locale/programs/ld-ctype.c (allocate_arrays): Complete last patch. Use wch instead of idx to compute index. Patch by Shinya Hanataka . --- diff --git a/ChangeLog b/ChangeLog index 714e504..fc42a29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-11-26 Ulrich Drepper + * locale/programs/ld-ctype.c (allocate_arrays): Complete last + patch. Use wch instead of idx to compute index. + Patch by Shinya Hanataka . + * inet/rcmd.c (ruserok): Use iruserok2 not iruserok. * locale/iso-3166.def: Update from latest official list. diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index c82a36b..6273663 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -3108,10 +3108,10 @@ Computing table size for character classes might take a while..."), 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);