Commit a4aee864 authored by Eli Zaretskii's avatar Eli Zaretskii

(detect_coding_charset): Fix change from 2008-10-21.

Also, check iso-latin-*, not only iso-8859-*.
parent b4b7bab7
2009-02-28 Eli Zaretskii <eliz@gnu.org>
* coding.c (detect_coding_charset): Fix change from 2008-10-21.
Also, check iso-latin-*, not only iso-8859-*.
2009-02-27 Glenn Morris <rgm@gnu.org>
* callint.c (Finteractive): Doc fix.
......
......@@ -5103,7 +5103,10 @@ detect_coding_charset (coding, detect_info)
valids = AREF (attrs, coding_attr_charset_valids);
name = CODING_ID_NAME (coding->id);
if (VECTORP (Vlatin_extra_code_table)
&& strcmp ((char *) SDATA (SYMBOL_NAME (name)), "iso-8859-") == 0)
&& (strncmp ((char *) SDATA (SYMBOL_NAME (name)),
"iso-8859-", sizeof ("iso-8859-") - 1) == 0
|| strncmp ((char *) SDATA (SYMBOL_NAME (name)),
"iso-latin-", sizeof ("iso-latin-") - 1) == 0))
check_latin_extra = 1;
if (! NILP (CODING_ATTR_ASCII_COMPAT (attrs)))
src += head_ascii;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment