(detect_coding_utf_16): Fix previous change.

This commit is contained in:
Kenichi Handa 2009-06-17 00:42:17 +00:00
parent f6adc23c80
commit 7f1faf1cc2
2 changed files with 6 additions and 1 deletions

View file

@ -1669,7 +1669,8 @@ detect_coding_utf_16 (coding, detect_info)
|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)