diff options
| author | Kenichi Handa | 2008-05-14 01:46:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-05-14 01:46:15 +0000 |
| commit | c6b278e7cb1a8d5a51fcc947e495a3e5f7148aab (patch) | |
| tree | 99ccbecc1a2ffa0d3e957866f7276196941450f6 /src/coding.c | |
| parent | 90546022d6107084a5e3ab927dd5a0257aacf890 (diff) | |
| download | emacs-c6b278e7cb1a8d5a51fcc947e495a3e5f7148aab.tar.gz emacs-c6b278e7cb1a8d5a51fcc947e495a3e5f7148aab.zip | |
(detect_coding_iso_2022): Ignore a coding category that
has no corresponding coding system.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index 81e8e4e10bc..4e8063543fe 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -2695,6 +2695,8 @@ detect_coding_iso_2022 (coding, detect_info) | |||
| 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)) |