Mercurial > emacs
comparison src/coding.c @ 103448:73e7271dee09
(detect_coding_utf_16): Fix previous change.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Wed, 17 Jun 2009 00:42:07 +0000 |
| parents | db4ec1a977bd |
| children | 7ead50363544 |
comparison
equal
deleted
inserted
replaced
| 103447:89bc2ab110c5 | 103448:73e7271dee09 |
|---|---|
| 1667 | 1667 |
| 1668 detect_info->rejected |= (CATEGORY_MASK_UTF_16_AUTO | 1668 detect_info->rejected |= (CATEGORY_MASK_UTF_16_AUTO |
| 1669 |CATEGORY_MASK_UTF_16_BE | 1669 |CATEGORY_MASK_UTF_16_BE |
| 1670 | CATEGORY_MASK_UTF_16_LE); | 1670 | CATEGORY_MASK_UTF_16_LE); |
| 1671 | 1671 |
| 1672 while (detect_info->rejected != CATEGORY_MASK_UTF_16) | 1672 while ((detect_info->rejected & CATEGORY_MASK_UTF_16) |
| 1673 != CATEGORY_MASK_UTF_16) | |
| 1673 { | 1674 { |
| 1674 TWO_MORE_BYTES (c1, c2); | 1675 TWO_MORE_BYTES (c1, c2); |
| 1675 if (c2 < 0) | 1676 if (c2 < 0) |
| 1676 break; | 1677 break; |
| 1677 if (! e[c1]) | 1678 if (! e[c1]) |
