Mercurial > emacs
changeset 89207:c232917f49f7
(decode_coding): Fix args to translate_chars. Pay
attention to Vstandard_translation_table_for_decode.
(encode_coding): Fix args to translate_chars. Pay attention to
Vstandard_translation_table_for_encode.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 15 Oct 2002 01:15:52 +0000 |
parents | 5e72879267f8 |
children | 1271680eca43 |
files | src/coding.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Mon Oct 14 17:30:06 2002 +0000 +++ b/src/coding.c Tue Oct 15 01:15:52 2002 +0000 @@ -5584,7 +5584,9 @@ coding->annotated = 0; (*(coding->decoder)) (coding); if (!NILP (CODING_ATTR_DECODE_TBL (attrs))) - translate_chars (CODING_ATTR_DECODE_TBL (attrs), coding); + translate_chars (coding, CODING_ATTR_DECODE_TBL (attrs)); + else if (!NILP (Vstandard_translation_table_for_decode)) + translate_chars (coding, Vstandard_translation_table_for_decode); coding_set_destination (coding); produce_chars (coding); if (coding->annotated) @@ -5768,7 +5770,9 @@ consume_chars (coding); if (!NILP (CODING_ATTR_ENCODE_TBL (attrs))) - translate_chars (CODING_ATTR_ENCODE_TBL (attrs), coding); + translate_chars (coding, CODING_ATTR_ENCODE_TBL (attrs)); + else if (!NILP (Vstandard_translation_table_for_encode)) + translate_chars (coding, Vstandard_translation_table_for_encode); coding_set_destination (coding); (*(coding->encoder)) (coding);