diff options
| author | Kenichi Handa | 2004-02-06 11:05:20 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-02-06 11:05:20 +0000 |
| commit | 1c305bc1f58f34d89f5d975a52cfc66b3df7715a (patch) | |
| tree | 82e1806d3a14c4d516456dc02f90a4668b62c9d0 /src | |
| parent | ffccb0b664492a8ff27565f865927977df4af091 (diff) | |
| download | emacs-1c305bc1f58f34d89f5d975a52cfc66b3df7715a.tar.gz emacs-1c305bc1f58f34d89f5d975a52cfc66b3df7715a.zip | |
(CHAR_CHARSET_P): Fix for the case that the method is subset or
superset.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/charset.h b/src/charset.h index 18fdcfb16c0..0965bb29d2c 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -110,8 +110,8 @@ enum charset_attr_index | |||
| 110 | charset_unify_map, | 110 | charset_unify_map, |
| 111 | 111 | ||
| 112 | /* If characters in the charset must be unified Unicode, the value | 112 | /* If characters in the charset must be unified Unicode, the value |
| 113 | is a char table that maps a character code in the charset to | 113 | is a char table that maps a unified Unicode character code to |
| 114 | the corresponding Unicode character. */ | 114 | the non-unified character code in the charset. */ |
| 115 | charset_deunifier, | 115 | charset_deunifier, |
| 116 | 116 | ||
| 117 | /* The length of the charset attribute vector. */ | 117 | /* The length of the charset attribute vector. */ |
| @@ -484,7 +484,9 @@ extern int iso_charset_table[ISO_MAX_DIMENSION][ISO_MAX_CHARS][ISO_MAX_FINAL]; | |||
| 484 | /* 1 iff CHARSET may contain the character C. */ | 484 | /* 1 iff CHARSET may contain the character C. */ |
| 485 | #define CHAR_CHARSET_P(c, charset) \ | 485 | #define CHAR_CHARSET_P(c, charset) \ |
| 486 | ((ASCII_CHAR_P (c) && (charset)->ascii_compatible_p) \ | 486 | ((ASCII_CHAR_P (c) && (charset)->ascii_compatible_p) \ |
| 487 | || (CHARSET_UNIFIED_P (charset) \ | 487 | || ((CHARSET_UNIFIED_P (charset) \ |
| 488 | || (charset)->method == CHARSET_METHOD_SUBSET \ | ||
| 489 | || (charset)->method == CHARSET_METHOD_SUPERSET) \ | ||
| 488 | ? encode_char ((charset), (c)) != (charset)->invalid_code \ | 490 | ? encode_char ((charset), (c)) != (charset)->invalid_code \ |
| 489 | : (CHARSET_FAST_MAP_REF ((c), (charset)->fast_map) \ | 491 | : (CHARSET_FAST_MAP_REF ((c), (charset)->fast_map) \ |
| 490 | && ((charset)->method == CHARSET_METHOD_OFFSET \ | 492 | && ((charset)->method == CHARSET_METHOD_OFFSET \ |