(detect_coding_charset): If not checking latin extra,

fail on characters between 0x80 and 0xA0.  (Bug#2354)
This commit is contained in:
Jason Rumney 2009-02-28 13:37:33 +00:00
parent 3122b0732a
commit 9f0526cb4b

View 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;
}