changeset 89221:e6779a6185ca

(detect_coding): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Wed, 16 Oct 2002 02:14:49 +0000
parents 92c252a9f485
children 5db2e48ffbcb
files src/coding.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Oct 15 17:21:18 2002 +0000
+++ b/src/coding.c	Wed Oct 16 02:14:49 2002 +0000
@@ -5070,7 +5070,10 @@
 		  detected |= detected_mask[category];
 		  if ((*(this->detector)) (coding, &mask)
 		      && (mask & (1 << category)))
-		    break;
+		    {
+		      mask = 1 << category;
+		      break;
+		    }
 		}
 	    }
 	  if (! mask)