From: Kenichi Handa Date: Thu, 5 Jun 2008 11:35:10 +0000 (+0000) Subject: (detect_coding): Fix previous change. X-Git-Tag: emacs-pretest-23.0.90~5078 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c006c0c8ccb5fb6552f2074715ecd97685337f2b;p=emacs.git (detect_coding): Fix previous change. (detect_coding_system): Likewise. --- 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++; }