diff options
author | Kenichi Handa <handa@m17n.org> | 2003-05-30 06:03:22 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2003-05-30 06:03:22 +0000 |
commit | 170e458922800fe0d597869e958c96bf47a47e70 (patch) | |
tree | 6df1b10a8aa8ce8f0ad33057d69eb737e09942a9 | |
parent | f1beb0e09065011f270db9e4930978e088e49e48 (diff) | |
download | emacs-170e458922800fe0d597869e958c96bf47a47e70.tar.gz |
(Fset_unibyte_charset): Fix setting up of
unibyte_to_multibyte_table.
(init_charset_once): Likewise.
-rw-r--r-- | src/charset.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/charset.c b/src/charset.c index 431e06a0c02..e53fbf915fa 100644 --- a/src/charset.c +++ b/src/charset.c @@ -1177,7 +1177,7 @@ function `unibyte-charset'. */) 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 @@ init_charset_once () 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 |