changeset 89452:6cc7c4aa53cc

(Fset_unibyte_charset): Fix setting up of unibyte_to_multibyte_table. (init_charset_once): Likewise.
author Kenichi Handa <handa@m17n.org>
date Fri, 30 May 2003 06:03:22 +0000
parents dfec40127cbe
children 85b37317d5ea
files src/charset.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Fri May 30 06:02:00 2003 +0000
+++ b/src/charset.c	Fri May 30 06:03:22 2003 +0000
@@ -1177,7 +1177,7 @@
   for (i = 128; i < 256; i++)
     {
       c = DECODE_CHAR (cs, i);
-      unibyte_to_multibyte_table[i] = (c < 0 ? i : c);
+      unibyte_to_multibyte_table[i] = (c < 0 ? BYTE8_TO_CHAR (i) : c);
     }
 
   return Qnil;
@@ -2058,8 +2058,10 @@
   charset_jisx0208_1978 = -1;
   charset_jisx0208 = -1;
 
-  for (i = 0; i < 256; i++)
+  for (i = 0; i < 128; i++)
     unibyte_to_multibyte_table[i] = i;
+  for (; i < 256; i++)
+    unibyte_to_multibyte_table[i] = BYTE8_TO_CHAR (i);
 }
 
 #ifdef emacs