1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-27 02:10:52 -08:00

(char_valid_p): Handle a composite character correctly.

This commit is contained in:
Kenichi Handa 1998-11-11 10:31:24 +00:00
parent 08cb5a0ee8
commit 32278fd599

View file

@ -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. */