comparison src/coding.c @ 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 62d97ebb13a9
children 8971ddf55736
comparison
equal deleted inserted replaced
94943:9a4044b9c084 94944:c16046e21b90
2693 for (i = coding_category_iso_7; i <= coding_category_iso_8_else; i++) 2693 for (i = coding_category_iso_7; i <= coding_category_iso_8_else; i++)
2694 { 2694 {
2695 struct coding_system *this = &(coding_categories[i]); 2695 struct coding_system *this = &(coding_categories[i]);
2696 Lisp_Object attrs, val; 2696 Lisp_Object attrs, val;
2697 2697
2698 if (this->id < 0)
2699 continue;
2698 attrs = CODING_ID_ATTRS (this->id); 2700 attrs = CODING_ID_ATTRS (this->id);
2699 if (CODING_ISO_FLAGS (this) & CODING_ISO_FLAG_FULL_SUPPORT 2701 if (CODING_ISO_FLAGS (this) & CODING_ISO_FLAG_FULL_SUPPORT
2700 && ! EQ (CODING_ATTR_SAFE_CHARSETS (attrs), Viso_2022_charset_list)) 2702 && ! EQ (CODING_ATTR_SAFE_CHARSETS (attrs), Viso_2022_charset_list))
2701 setup_iso_safe_charsets (attrs); 2703 setup_iso_safe_charsets (attrs);
2702 val = CODING_ATTR_SAFE_CHARSETS (attrs); 2704 val = CODING_ATTR_SAFE_CHARSETS (attrs);