From d8c9fb88260f0113f21fb5b31aa84d4497e830e4 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 2 Dec 2003 06:57:17 +0000 Subject: [PATCH] (detect_coding): Fix previous change. (detect_coding_system): Likewise. --- src/coding.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/coding.c b/src/coding.c index b62a4133a6b..353f165f4ca 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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) -- 2.39.2