changeset 94944:c16046e21b90

(detect_coding_iso_2022): Ignore a coding category that has no corresponding coding system.
author Kenichi Handa <handa@m17n.org>
date Wed, 14 May 2008 01:45:34 +0000
parents 9a4044b9c084
children a2e5869bc360
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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))