aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2002-10-15 01:15:52 +0000
committerKenichi Handa2002-10-15 01:15:52 +0000
commitda4109a9ecbaed9b5835004a03d08278e3743be2 (patch)
treeec0b13fda0d7dfccecb9a8053e043c9e52c8bc47 /src/coding.c
parent89364cdac06d1e1f8f36be23800b5ff768b30ce9 (diff)
downloademacs-da4109a9ecbaed9b5835004a03d08278e3743be2.tar.gz
emacs-da4109a9ecbaed9b5835004a03d08278e3743be2.zip
(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.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index d23a5ff544c..97a8ea863ee 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5584,7 +5584,9 @@ decode_coding (coding)
5584 coding->annotated = 0; 5584 coding->annotated = 0;
5585 (*(coding->decoder)) (coding); 5585 (*(coding->decoder)) (coding);
5586 if (!NILP (CODING_ATTR_DECODE_TBL (attrs))) 5586 if (!NILP (CODING_ATTR_DECODE_TBL (attrs)))
5587 translate_chars (CODING_ATTR_DECODE_TBL (attrs), coding); 5587 translate_chars (coding, CODING_ATTR_DECODE_TBL (attrs));
5588 else if (!NILP (Vstandard_translation_table_for_decode))
5589 translate_chars (coding, Vstandard_translation_table_for_decode);
5588 coding_set_destination (coding); 5590 coding_set_destination (coding);
5589 produce_chars (coding); 5591 produce_chars (coding);
5590 if (coding->annotated) 5592 if (coding->annotated)
@@ -5768,7 +5770,9 @@ encode_coding (coding)
5768 consume_chars (coding); 5770 consume_chars (coding);
5769 5771
5770 if (!NILP (CODING_ATTR_ENCODE_TBL (attrs))) 5772 if (!NILP (CODING_ATTR_ENCODE_TBL (attrs)))
5771 translate_chars (CODING_ATTR_ENCODE_TBL (attrs), coding); 5773 translate_chars (coding, CODING_ATTR_ENCODE_TBL (attrs));
5774 else if (!NILP (Vstandard_translation_table_for_encode))
5775 translate_chars (coding, Vstandard_translation_table_for_encode);
5772 5776
5773 coding_set_destination (coding); 5777 coding_set_destination (coding);
5774 (*(coding->encoder)) (coding); 5778 (*(coding->encoder)) (coding);