]> git.eshelyaron.com Git - emacs.git/commitdiff
(detect_coding): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Thu, 5 Jun 2008 11:35:10 +0000 (11:35 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 5 Jun 2008 11:35:10 +0000 (11:35 +0000)
(detect_coding_system): Likewise.

src/coding.c

index 3ee2a7248cfbaa3c891a990742a9ce3561769308..56dd5d5b803707a34b15f3dad0f21960049ee1df 100644 (file)
@@ -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++;
        }