aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2009-02-28 13:37:33 +0000
committerJason Rumney <[email protected]>2009-02-28 13:37:33 +0000
commit9f0526cb4b5c7785cded8fcb3fd9f96bb45b71db (patch)
treee8355f1e3f9743aa69a3bf74592d06dbe14d3cc5
parent3122b0732a1da6de74bbfa1a45a56ba7b393bd0f (diff)
(detect_coding_charset): If not checking latin extra,
fail on characters between 0x80 and 0xA0. (Bug#2354)
-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;
}