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:
parent
08cb5a0ee8
commit
32278fd599
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue