emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs/src coding.c


From: Kenichi Handa
Subject: [Emacs-diffs] emacs/src coding.c
Date: Tue, 16 Jun 2009 01:17:11 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kenichi Handa <handa>   09/06/16 01:17:11

Modified files:
        src            : coding.c 

Log message:
        (detect_coding_utf_16): Fix the logic of rejecting
        UTF-16 by checking the dispersion of Eth and Oth bytes.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/coding.c?cvsroot=emacs&r1=1.431&r2=1.432

Patches:
Index: coding.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/coding.c,v
retrieving revision 1.431
retrieving revision 1.432
diff -u -b -r1.431 -r1.432
--- coding.c    15 Jun 2009 21:36:46 -0000      1.431
+++ coding.c    16 Jun 2009 01:17:10 -0000      1.432
@@ -1677,14 +1677,14 @@
            {
              e[c1] = 1;
              e_num++;
-             if (e_num >= 128)
+             if (e_num >= 128 && o_num >= 128)
                break;
            }
          if (! o[c2])
            {
              o[c2] = 1;
              o_num++;
-             if (o_num >= 128)
+             if (e_num >= 128 && o_num >= 128)
                break;
            }
        }




reply via email to

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