diff options
| author | Kenichi Handa | 2008-07-09 13:06:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-07-09 13:06:14 +0000 |
| commit | 0e17387a9e94f2e1974fa857dc8808bbea66c523 (patch) | |
| tree | d0ac1c67515b16eb4b4e90d6305a0839d3dc738c /src/coding.c | |
| parent | 41fa3e2c20c5f64470b41df18fd7a9cf5dd0c7c9 (diff) | |
| download | emacs-0e17387a9e94f2e1974fa857dc8808bbea66c523.tar.gz emacs-0e17387a9e94f2e1974fa857dc8808bbea66c523.zip | |
(detect_coding_utf_8): Set detect_info->found only when
non-ASCII char is found.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 56dd5d5b803..65754b4b1bb 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1310,7 +1310,8 @@ detect_coding_utf_8 (coding, detect_info) | |||
| 1310 | else | 1310 | else |
| 1311 | { | 1311 | { |
| 1312 | detect_info->rejected |= CATEGORY_MASK_UTF_8_SIG; | 1312 | detect_info->rejected |= CATEGORY_MASK_UTF_8_SIG; |
| 1313 | detect_info->found |= CATEGORY_MASK_UTF_8_NOSIG; | 1313 | if (found) |
| 1314 | detect_info->found |= CATEGORY_MASK_UTF_8_NOSIG; | ||
| 1314 | } | 1315 | } |
| 1315 | return 1; | 1316 | return 1; |
| 1316 | } | 1317 | } |