# HG changeset patch # User Kenichi Handa # Date 1210729534 0 # Node ID c16046e21b901d1699d7b2c28976d4abd742b27b # Parent 9a4044b9c0845a40f4c401a95a7838cd91443540 (detect_coding_iso_2022): Ignore a coding category that has no corresponding coding system. diff -r 9a4044b9c084 -r c16046e21b90 src/coding.c --- a/src/coding.c Wed May 14 01:44:51 2008 +0000 +++ b/src/coding.c Wed May 14 01:45:34 2008 +0000 @@ -2695,6 +2695,8 @@ 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))