Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 27 Nov 1999 02:43:16 +0000 (02:43 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 27 Nov 1999 02:43:16 +0000 (02:43 +0000)
* 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>.

ChangeLog
locale/programs/ld-ctype.c

index 714e504..fc42a29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
index c82a36b..6273663 100644 (file)
@@ -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);