Mercurial > emacs
changeset 89366:0c9b64b6b6af
(ENCODE_CHAR): If the method is SUBSET or SUPERSET, call encode_char.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sat, 11 Jan 2003 03:38:51 +0000 |
parents | 110a171821db |
children | f665bf3ca14d |
files | src/charset.h |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.h Sat Jan 11 03:38:05 2003 +0000 +++ b/src/charset.h Sat Jan 11 03:38:51 2003 +0000 @@ -421,7 +421,9 @@ #define ENCODE_CHAR(charset, c) \ ((ASCII_CHAR_P (c) && (charset)->ascii_compatible_p) \ ? (c) \ - : (charset)->unified_p \ + : ((charset)->unified_p \ + || (charset)->method == CHARSET_METHOD_SUBSET \ + || (charset)->method == CHARSET_METHOD_SUPERSET) \ ? encode_char ((charset), (c)) \ : ((c) < (charset)->min_char || (c) > (charset)->max_char) \ ? (charset)->invalid_code \