changeset 95585:862c7386145c

(detect_coding): Fix previous change. (detect_coding_system): Likewise.
author Kenichi Handa <handa@m17n.org>
date Thu, 05 Jun 2008 11:35:10 +0000
parents 56063bdf17fc
children 64da3838a9aa
files src/coding.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Jun 05 11:34:57 2008 +0000
+++ b/src/coding.c	Thu Jun 05 11:35:10 2008 +0000
@@ -5830,9 +5830,10 @@
 		  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 @@
 		  if (eight_bit_found)
 		    break;
 		}
-	      coding.head_ascii++;
+	      if (! eight_bit_found)
+		coding.head_ascii++;
 	    }
-	  else
+	  else if (! eight_bit_found)
 	    coding.head_ascii++;
 	}