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 | |
| 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')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/coding.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 43d0dd3dfb4..a03f3547843 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2008-07-09 Kenichi Handa <handa@m17n.org> | 1 | 2008-07-09 Kenichi Handa <handa@m17n.org> |
| 2 | 2 | ||
| 3 | * coding.c (detect_coding_utf_8): Set detect_info->found only when | ||
| 4 | non-ASCII char is found. | ||
| 5 | |||
| 3 | * fontset.c (fontset_compare_rfontdef): Fix plus/minus. | 6 | * fontset.c (fontset_compare_rfontdef): Fix plus/minus. |
| 4 | (reorder_font_vector): Change the arg preferred_family to font. | 7 | (reorder_font_vector): Change the arg preferred_family to font. |
| 5 | Prefer the spec matching with font. | 8 | Prefer the spec matching with font. |
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 | } |