(detect_coding_utf_16): Fix previous change.
This commit is contained in:
parent
f6adc23c80
commit
7f1faf1cc2
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue