2003-01-11 Kenichi Handa <handa@m17n.org>
+ * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
+ call encode_char.
+
+ * charset.c (encode_char): Fix handling of methods SUBSET and
+ SUPERSET.
+
* xterm.c (x_new_fontset): Fix previous change.
2003-01-10 Dave Love <fx@gnu.org>
#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 \