changeset 59608:a691d3c9971a

(decode_coding_iso2022): Translate invalid codes if translation-table is specified.
author Kenichi Handa <handa@m17n.org>
date Tue, 18 Jan 2005 00:11:43 +0000
parents 18462b0e2a00
children ebe61bf4c2a3
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Jan 18 00:00:59 2005 +0000
+++ b/src/coding.c	Tue Jan 18 00:11:43 2005 +0000
@@ -2208,6 +2208,8 @@
 	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);
     }