]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 14 May 1998 23:17:30 +0000 (23:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 14 May 1998 23:17:30 +0000 (23:17 +0000)
1998-05-14 23:14  Ulrich Drepper  <drepper@cygnus.com>

* locale/programs/ld-ctype.c: Write correct mb_cur_max value.

ChangeLog
locale/programs/ld-ctype.c

index 0d22b9f6b31795625ffd889a8e4d31f7bd1e22f0..5566a7f75d053becf9c8816f9e58c0e1f0ca43e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1998-05-14 23:14  Ulrich Drepper  <drepper@cygnus.com>
+
+       * locale/programs/ld-ctype.c: Write correct mb_cur_max value.
+
 1998-05-14 13:25  Ulrich Drepper  <drepper@cygnus.com>
 
        * inet/netinet/in.h: Add defines for multicast.
index 2f9a9a2cafd32cdb443e0521ce56ebf5d38f1fa7..01d37e3fc4f41f75c39bdf5036853044e548bd68 100644 (file)
@@ -1447,11 +1447,8 @@ Computing table size for character classes might take a while..."),
            }
     }
 
-  /* Compute MB_CUR_MAX.  Please note the value mb_cur_max in the
-     character set definition gives the number of bytes in the wide
-     character representation.  We compute the number of bytes used
-     for the UTF-8 encoded form.  */
-  ctype->mb_cur_max = ((int []) { 2, 3, 5, 6 }) [charset->mb_cur_max - 1];
+  /* Compute MB_CUR_MAX.  */
+  ctype->mb_cur_max = charset->mb_cur_max;
 
   /* We need the name of the currently used 8-bit character set to
      make correct conversion between this 8-bit representation and the