aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 020a140157..176d115d44 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5128,8 +5128,8 @@ detect_coding_charset (coding, detect_info)
if (c >= 0x80)
{
if (c < 0xA0
- && check_latin_extra
- && NILP (XVECTOR (Vlatin_extra_code_table)->contents[c]))
+ && (!check_latin_extra
+ || NILP (XVECTOR (Vlatin_extra_code_table)->contents[c])))
break;
found = CATEGORY_MASK_CHARSET;
}