diff options
author | Kenichi Handa <handa@m17n.org> | 2008-11-29 13:47:31 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2008-11-29 13:47:31 +0000 |
commit | 8cc53f96e5dc3d647411e01298e4125ed4b00928 (patch) | |
tree | 02ac71d866683a4c1ca4632d85e083a9a1a9eb8f /src/charset.h | |
parent | 9c6361c98bf378474cac35b6f9b3330ba66e91ce (diff) | |
download | emacs-8cc53f96e5dc3d647411e01298e4125ed4b00928.tar.gz |
(CHAR_CHARSET_P): Check if the encoder is loaded or
not before accessing it.
Diffstat (limited to 'src/charset.h')
-rw-r--r-- | src/charset.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charset.h b/src/charset.h index 1dac7add242..fa3f363a9e8 100644 --- a/src/charset.h +++ b/src/charset.h @@ -503,7 +503,8 @@ extern int iso_charset_table[ISO_MAX_DIMENSION][ISO_MAX_CHARS][ISO_MAX_FINAL]; && ((charset)->method == CHARSET_METHOD_OFFSET \ ? (c) >= (charset)->min_char && (c) <= (charset)->max_char \ : ((charset)->method == CHARSET_METHOD_MAP \ - && (charset)->compact_codes_p) \ + && (charset)->compact_codes_p \ + && CHAR_TABLE_P (CHARSET_ENCODER (charset))) \ ? ! NILP (CHAR_TABLE_REF (CHARSET_ENCODER (charset), (c))) \ : encode_char ((charset), (c)) != (charset)->invalid_code)))) |