From: Jason Rumney Date: Sat, 28 Feb 2009 13:37:33 +0000 (+0000) Subject: (detect_coding_charset): If not checking latin extra, X-Git-Tag: emacs-pretest-23.0.92~410 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f0526cb4b5c7785cded8fcb3fd9f96bb45b71db;p=emacs.git (detect_coding_charset): If not checking latin extra, fail on characters between 0x80 and 0xA0. (Bug#2354) --- 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; }