emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/charset.c


From: Kenichi Handa
Subject: [Emacs-diffs] Changes to emacs/src/charset.c
Date: Thu, 09 May 2002 23:54:49 -0400

Index: emacs/src/charset.c
diff -c emacs/src/charset.c:1.127 emacs/src/charset.c:1.128
*** emacs/src/charset.c:1.127   Mon Apr  1 17:54:03 2002
--- emacs/src/charset.c Fri Apr 26 08:03:20 2002
***************
*** 143,149 ****
        (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.  */
  #define CHAR_COMPONENTS_VALID_P(charset, c1, c2)      \
    ((charset) == CHARSET_ASCII                         \
     ? ((c1) >= 0 && (c1) <= 0x7F)                      \
--- 143,152 ----
        (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.
!    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)                      \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]