From c006c0c8ccb5fb6552f2074715ecd97685337f2b Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 5 Jun 2008 11:35:10 +0000 Subject: [PATCH] (detect_coding): Fix previous change. (detect_coding_system): Likewise. --- src/coding.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/coding.c b/src/coding.c index 3ee2a7248cf..56dd5d5b803 100644 --- a/src/coding.c +++ b/src/coding.c @@ -5830,9 +5830,10 @@ detect_coding (coding) if (eight_bit_found) break; } - coding->head_ascii++; + if (! eight_bit_found) + coding->head_ascii++; } - else + else if (! eight_bit_found) coding->head_ascii++; } @@ -7707,9 +7708,10 @@ detect_coding_system (src, src_chars, src_bytes, highest, multibytep, if (eight_bit_found) break; } - coding.head_ascii++; + if (! eight_bit_found) + coding.head_ascii++; } - else + else if (! eight_bit_found) coding.head_ascii++; }