# HG changeset patch # User Kenichi Handa # Date 1070348237 0 # Node ID cf1ff36f92dce850e296f9a5316d50afa09fdc96 # Parent 4a257267ef660a5a4759db6f1bb6718b7c8c9b57 (detect_coding): Fix previous change. (detect_coding_system): Likewise. diff -r 4a257267ef66 -r cf1ff36f92dc src/coding.c --- 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)