From: Eli Zaretskii Date: Fri, 26 Apr 2002 12:03:20 +0000 (+0000) Subject: (CHAR_COMPONENTS_VALID_P): Tell in a comment that some invalid pairs are X-Git-Tag: ttn-vms-21-2-B4~15382 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d37478d0d7bf30c941bd5accd922a54dea0f49c8;p=emacs.git (CHAR_COMPONENTS_VALID_P): Tell in a comment that some invalid pairs are intentionally allowed. --- diff --git a/src/charset.c b/src/charset.c index 818457f8e1b..118d5fed9ba 100644 --- a/src/charset.c +++ b/src/charset.c @@ -143,7 +143,10 @@ invalid_character (c) (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) \