mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-21 05:00:47 -08:00
(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.
This commit is contained in:
parent
89364cdac0
commit
da4109a9ec
1 changed files with 6 additions and 2 deletions
|
|
@ -5584,7 +5584,9 @@ decode_coding (coding)
|
|||
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 @@ encode_coding (coding)
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue