changeset 103448:73e7271dee09

(detect_coding_utf_16): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Wed, 17 Jun 2009 00:42:07 +0000
parents 89bc2ab110c5
children 38c39782826d
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Jun 16 07:37:59 2009 +0000
+++ b/src/coding.c	Wed Jun 17 00:42:07 2009 +0000
@@ -1669,7 +1669,8 @@
 				|CATEGORY_MASK_UTF_16_BE
 				| CATEGORY_MASK_UTF_16_LE);
 
-      while (detect_info->rejected != CATEGORY_MASK_UTF_16)
+      while ((detect_info->rejected & CATEGORY_MASK_UTF_16)
+	     != CATEGORY_MASK_UTF_16)
 	{
 	  TWO_MORE_BYTES (c1, c2);
 	  if (c2 < 0)