(detect_coding_charset): If not checking latin extra,
authorJason Rumney <jasonr@gnu.org>
Sat, 28 Feb 2009 13:37:33 +0000 (13:37 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 28 Feb 2009 13:37:33 +0000 (13:37 +0000)
fail on characters between 0x80 and 0xA0.  (Bug#2354)

src/coding.c

index 020a140..176d115 100644 (file)
@@ -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;
        }