# HG changeset patch # User Kenichi Handa # Date 1042256331 0 # Node ID 0c9b64b6b6affc3d3dcab2d342836024a9cda958 # Parent 110a171821db5fb1a145197a2252917e16e78b16 (ENCODE_CHAR): If the method is SUBSET or SUPERSET, call encode_char. diff -r 110a171821db -r 0c9b64b6b6af src/charset.h --- 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 \