changeset 89676:cf1ff36f92dc

(detect_coding): Fix previous change. (detect_coding_system): Likewise.
author Kenichi Handa <handa@m17n.org>
date Tue, 02 Dec 2003 06:57:17 +0000
parents 4a257267ef66
children 7824ba2e288d
files src/coding.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Dec 02 05:04:08 2003 +0000
+++ b/src/coding.c	Tue Dec 02 06:57:17 2003 +0000
@@ -5229,9 +5229,6 @@
 					|| 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 @@
 					|| 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)