From 32278fd599e7d00d9584a0c31700a8294e13b8a8 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 11 Nov 1998 10:31:24 +0000 Subject: [PATCH] (char_valid_p): Handle a composite character correctly. --- src/charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.39.2