]> git.eshelyaron.com Git - emacs.git/commitdiff
(detect_coding): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Tue, 2 Dec 2003 06:57:17 +0000 (06:57 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 2 Dec 2003 06:57:17 +0000 (06:57 +0000)
(detect_coding_system): Likewise.

src/coding.c

index b62a4133a6bdb022df930b01752394edcebb661a..353f165f4ca47d2509e75fff9b6fa7d5c9f34567 100644 (file)
@@ -5229,9 +5229,6 @@ detect_coding (coding)
                                        || c == ISO_CODE_SO)))
            break;
        }
-      /* Skipped bytes must be even for utf-16 detector.  */
-      if (i % 2)
-       src--;
       coding->head_ascii = src - (coding->source + coding->consumed);
 
       if (coding->head_ascii < coding->src_bytes)
@@ -6711,9 +6708,6 @@ detect_coding_system (src, src_chars, src_bytes, highest, multibytep,
                                        || c == ISO_CODE_SO)))
            break;
        }
-      /* Skipped bytes must be even for utf-16 detecor.  */
-      if (i % 2)
-       src--;
       coding.head_ascii = src - coding.source;
 
       if (src < src_end)