aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
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}