Mercurial > emacs
changeset 44878:c62f10c00a76
(CHAR_COMPONENTS_VALID_P): Tell in a comment that some invalid pairs are
intentionally allowed.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 26 Apr 2002 12:03:20 +0000 |
parents | 6291099daba6 |
children | d995856e52ba |
files | src/charset.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.c Fri Apr 26 11:56:35 2002 +0000 +++ b/src/charset.c Fri Apr 26 12:03:20 2002 +0000 @@ -143,7 +143,10 @@ (charset) = (str)[1], (c1) = (str)[2] & 0x7F, (c2) = (str)[3] & 0x7F; \ } while (0) -/* 1 if CHARSET, C1, and C2 compose a valid character, else 0. */ +/* 1 if CHARSET, C1, and C2 compose a valid character, else 0. + Note that this intentionally allows invalid components, such + as 0xA0 0xA0, because there exist many files that contain + such invalid byte sequences, especially in EUC-GB. */ #define CHAR_COMPONENTS_VALID_P(charset, c1, c2) \ ((charset) == CHARSET_ASCII \ ? ((c1) >= 0 && (c1) <= 0x7F) \