From: Kenichi Handa Date: Tue, 18 Jan 2005 00:11:43 +0000 (+0000) Subject: (decode_coding_iso2022): Translate invalid codes if X-Git-Tag: ttn-vms-21-2-B4~2698 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d4430a8eb6b2291fcda99aa281dae72dbc123a8;p=emacs.git (decode_coding_iso2022): Translate invalid codes if translation-table is specified. --- diff --git a/src/coding.c b/src/coding.c index 400210f4cd4..79e32fbed60 100644 --- a/src/coding.c +++ b/src/coding.c @@ -2208,6 +2208,8 @@ decode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes) DECODE_COMPOSITION_END ('1'); src = src_base; c = *src++; + if (! NILP (translation_table)) + c = translate_char (translation_table, c, 0, 0, 0); EMIT_CHAR (c); }