Mercurial > emacs
changeset 90021:69699ae00d9c
(Fset_unibyte_charset): Setup
unibyte_has_multibyte_table.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 15 Oct 2004 02:10:42 +0000 |
parents | 680f4ba0cdc9 |
children | 63061660cd73 |
files | src/charset.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.c Fri Oct 15 02:10:10 2004 +0000 +++ b/src/charset.c Fri Oct 15 02:10:42 2004 +0000 @@ -1174,10 +1174,12 @@ || cs->dimension != 1) error ("Inappropriate unibyte charset: %s", SDATA (SYMBOL_NAME (charset))); charset_unibyte = cs->id; + memset (unibyte_has_multibyte_table, 1, 128); for (i = 128; i < 256; i++) { c = DECODE_CHAR (cs, i); unibyte_to_multibyte_table[i] = (c < 0 ? BYTE8_TO_CHAR (i) : c); + unibyte_has_multibyte_table[i] = c >= 0; } return Qnil;