]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 714e5040cbe9db7a0934b7592d7ee03ffbe1b669..fc42a29ffa79f9318eba8e127bfaca59409f55ad 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 c82a36b80c7f1b98bbc82ac02b5f3770f4eb8605..627366393362044d77050aac2bf0764bf73b37ab 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);