aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2003-01-11 03:39:02 +0000
committerKenichi Handa2003-01-11 03:39:02 +0000
commit9a02732df6f6e1cd508b618c7f244f139869d14a (patch)
treec329c39ee1786a029f2c579abaaa79702f75f1a7 /src
parent15c85a884f277ebe707c292f357ad8903927c33c (diff)
downloademacs-9a02732df6f6e1cd508b618c7f244f139869d14a.tar.gz
emacs-9a02732df6f6e1cd508b618c7f244f139869d14a.zip
(ENCODE_CHAR): If the method is SUBSET or SUPERSET, call encode_char.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/charset.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b7b3e86a00f..aa77e0b28eb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12003-01-11 Kenichi Handa <handa@m17n.org> 12003-01-11 Kenichi Handa <handa@m17n.org>
2 2
3 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
4 call encode_char.
5
6 * charset.c (encode_char): Fix handling of methods SUBSET and
7 SUPERSET.
8
3 * xterm.c (x_new_fontset): Fix previous change. 9 * xterm.c (x_new_fontset): Fix previous change.
4 10
52003-01-10 Dave Love <fx@gnu.org> 112003-01-10 Dave Love <fx@gnu.org>
diff --git a/src/charset.h b/src/charset.h
index dd8a872a328..6db0165274a 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -421,7 +421,9 @@ extern Lisp_Object charset_work;
421#define ENCODE_CHAR(charset, c) \ 421#define ENCODE_CHAR(charset, c) \
422 ((ASCII_CHAR_P (c) && (charset)->ascii_compatible_p) \ 422 ((ASCII_CHAR_P (c) && (charset)->ascii_compatible_p) \
423 ? (c) \ 423 ? (c) \
424 : (charset)->unified_p \ 424 : ((charset)->unified_p \
425 || (charset)->method == CHARSET_METHOD_SUBSET \
426 || (charset)->method == CHARSET_METHOD_SUPERSET) \
425 ? encode_char ((charset), (c)) \ 427 ? encode_char ((charset), (c)) \
426 : ((c) < (charset)->min_char || (c) > (charset)->max_char) \ 428 : ((c) < (charset)->min_char || (c) > (charset)->max_char) \
427 ? (charset)->invalid_code \ 429 ? (charset)->invalid_code \