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:
parent
f6adc23c80
commit
7f1faf1cc2
@ -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…
Reference in New Issue
Block a user