Commit 7f1faf1c authored by Kenichi Handa's avatar Kenichi Handa

(detect_coding_utf_16): Fix previous change.

parent f6adc23c
2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
* coding.c (detect_coding_utf_16): Fix previous change.
2009-06-16 Kenichi Handa <handa@m17n.org>
* coding.c (detect_coding_utf_16): Fix the logic of rejecting
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment