From: Kenichi Handa Date: Wed, 11 Nov 1998 10:31:24 +0000 (+0000) Subject: (char_valid_p): Handle a composite character correctly. X-Git-Tag: emacs-20.4~1261 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=32278fd599e7d00d9584a0c31700a8294e13b8a8;p=emacs.git (char_valid_p): Handle a composite character correctly. --- diff --git a/src/charset.c b/src/charset.c index a96d39b4a56..45fb383ad09 100644 --- a/src/charset.c +++ b/src/charset.c @@ -992,7 +992,7 @@ char_valid_p (c, genericp) if (SINGLE_BYTE_CHAR_P (c)) return 1; SPLIT_NON_ASCII_CHAR (c, charset, c1, c2); - if (!CHARSET_DEFINED_P (charset)) + if (charset != CHARSET_COMPOSITION && !CHARSET_DEFINED_P (charset)) return 0; return (c < MIN_CHAR_COMPOSITION ? ((c & CHAR_FIELD1_MASK) /* i.e. dimension of C is two. */