Mercurial > emacs
changeset 29225:03fbf69ced2c
(init_charset_once): Set the table bytes_by_char_head
correctly.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 26 May 2000 02:32:05 +0000 |
parents | c4ed562f1556 |
children | c90fae20d4be |
files | src/charset.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.c Fri May 26 00:42:50 2000 +0000 +++ b/src/charset.c Fri May 26 02:32:05 2000 +0000 @@ -1570,17 +1570,16 @@ for (i = 0; i < 256; i++) bytes_by_char_head[i] = 1; - for (i = MIN_CHARSET_OFFICIAL_DIMENSION1; - i <= MAX_CHARSET_OFFICIAL_DIMENSION1; i++) + for (i = 128; i < MIN_CHARSET_OFFICIAL_DIMENSION2; i++) bytes_by_char_head[i] = 2; - for (i = MIN_CHARSET_OFFICIAL_DIMENSION2; - i <= MAX_CHARSET_OFFICIAL_DIMENSION2; i++) + for (; i <= MAX_CHARSET_OFFICIAL_DIMENSION2; i++) bytes_by_char_head[i] = 3; + for (; i < 160; i++) + bytes_by_char_head[i] = 2; bytes_by_char_head[LEADING_CODE_PRIVATE_11] = 3; bytes_by_char_head[LEADING_CODE_PRIVATE_12] = 3; bytes_by_char_head[LEADING_CODE_PRIVATE_21] = 4; bytes_by_char_head[LEADING_CODE_PRIVATE_22] = 4; - bytes_by_char_head[LEADING_CODE_8_BIT_CONTROL] = 2; for (i = 0; i < 128; i++) width_by_char_head[i] = 1;