diff options
| author | Richard M. Stallman | 1998-08-09 05:28:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-08-09 05:28:02 +0000 |
| commit | f024b6aac03b2c6fb6c457bb8e2e40039177879f (patch) | |
| tree | 2a13191a8fecc85d0d812bd8c0e3bea0c9e6068b /src/coding.c | |
| parent | 3527740ceda00be08d29d7f855adfbe67335a709 (diff) | |
| download | emacs-f024b6aac03b2c6fb6c457bb8e2e40039177879f.tar.gz emacs-f024b6aac03b2c6fb6c457bb8e2e40039177879f.zip | |
(CHARSET_OK): Check that coding_system_table[IDX] != 0.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/coding.c b/src/coding.c index 7c693b86b1c..7e00f4a60fa 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -652,11 +652,12 @@ detect_coding_emacs_mule (src, src_end) | |||
| 652 | 652 | ||
| 653 | enum iso_code_class_type iso_code_class[256]; | 653 | enum iso_code_class_type iso_code_class[256]; |
| 654 | 654 | ||
| 655 | #define CHARSET_OK(idx, charset) \ | 655 | #define CHARSET_OK(idx, charset) \ |
| 656 | (coding_system_table[idx]->safe_charsets[charset] \ | 656 | (coding_system_table[idx] \ |
| 657 | || (CODING_SPEC_ISO_REQUESTED_DESIGNATION \ | 657 | && (coding_system_table[idx]->safe_charsets[charset] \ |
| 658 | (coding_system_table[idx], charset) \ | 658 | || (CODING_SPEC_ISO_REQUESTED_DESIGNATION \ |
| 659 | != CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION)) | 659 | (coding_system_table[idx], charset) \ |
| 660 | != CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION))) | ||
| 660 | 661 | ||
| 661 | #define SHIFT_OUT_OK(idx) \ | 662 | #define SHIFT_OUT_OK(idx) \ |
| 662 | (CODING_SPEC_ISO_INITIAL_DESIGNATION (coding_system_table[idx], 1) >= 0) | 663 | (CODING_SPEC_ISO_INITIAL_DESIGNATION (coding_system_table[idx], 1) >= 0) |