# HG changeset patch # User Kenichi Handa # Date 1245199327 0 # Node ID 73e7271dee09376c57a5ceadf3153c5a185b71ca # Parent 89bc2ab110c50743d8c1ad42267f8855ad9bfc63 (detect_coding_utf_16): Fix previous change. diff -r 89bc2ab110c5 -r 73e7271dee09 src/coding.c --- 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)