Mercurial > emacs
changeset 96571:a3f2a5a4b492
(detect_coding_utf_8): Set detect_info->found only when
non-ASCII char is found.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 09 Jul 2008 13:05:56 +0000 |
parents | 12587e64cfe3 |
children | b4b3a97faee1 |
files | src/coding.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Wed Jul 09 07:38:55 2008 +0000 +++ b/src/coding.c Wed Jul 09 13:05:56 2008 +0000 @@ -1310,7 +1310,8 @@ else { detect_info->rejected |= CATEGORY_MASK_UTF_8_SIG; - detect_info->found |= CATEGORY_MASK_UTF_8_NOSIG; + if (found) + detect_info->found |= CATEGORY_MASK_UTF_8_NOSIG; } return 1; }