From: Kenichi Handa Date: Tue, 2 Dec 2003 06:57:17 +0000 (+0000) Subject: (detect_coding): Fix previous change. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1672 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8c9fb88260f0113f21fb5b31aa84d4497e830e4;p=emacs.git (detect_coding): Fix previous change. (detect_coding_system): Likewise. --- 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)