diff options
author | Jason Rumney <jasonr@gnu.org> | 2009-02-28 13:37:33 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2009-02-28 13:37:33 +0000 |
commit | 9f0526cb4b5c7785cded8fcb3fd9f96bb45b71db (patch) | |
tree | e8355f1e3f9743aa69a3bf74592d06dbe14d3cc5 /src | |
parent | 3122b0732a1da6de74bbfa1a45a56ba7b393bd0f (diff) | |
download | emacs-9f0526cb4b5c7785cded8fcb3fd9f96bb45b71db.tar.gz |
(detect_coding_charset): If not checking latin extra,
fail on characters between 0x80 and 0xA0. (Bug#2354)
Diffstat (limited to 'src')
-rw-r--r-- | src/coding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index 020a1401575..176d115d445 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; } |