Commit c6b278e7 authored by Kenichi Handa's avatar Kenichi Handa

(detect_coding_iso_2022): Ignore a coding category that

has no corresponding coding system.
parent 90546022
This diff is collapsed.
......@@ -2695,6 +2695,8 @@ detect_coding_iso_2022 (coding, detect_info)
struct coding_system *this = &(coding_categories[i]);
Lisp_Object attrs, val;
if (this->id < 0)
continue;
attrs = CODING_ID_ATTRS (this->id);
if (CODING_ISO_FLAGS (this) & CODING_ISO_FLAG_FULL_SUPPORT
&& ! EQ (CODING_ATTR_SAFE_CHARSETS (attrs), Viso_2022_charset_list))
......
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