Mercurial > emacs
changeset 103441:d08523c14cca
(detect_coding_utf_16): Fix the logic of rejecting
UTF-16 by checking the dispersion of Eth and Oth bytes.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 16 Jun 2009 01:17:10 +0000 |
parents | 1bddb7afc319 |
children | db4ec1a977bd |
files | src/coding.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Tue Jun 16 00:56:02 2009 +0000 +++ b/src/coding.c Tue Jun 16 01:17:10 2009 +0000 @@ -1677,14 +1677,14 @@ { e[c1] = 1; e_num++; - if (e_num >= 128) + if (e_num >= 128 && o_num >= 128) break; } if (! o[c2]) { o[c2] = 1; o_num++; - if (o_num >= 128) + if (e_num >= 128 && o_num >= 128) break; } }