1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00

(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

@ -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

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)