comparison src/coding.c @ 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 2eadf4401d2d
children 8d84cdf36525 3dcba0bc766b
comparison
equal deleted inserted replaced
59607:18462b0e2a00 59608:a691d3c9971a
2206 coding->errors++; 2206 coding->errors++;
2207 if (COMPOSING_P (coding)) 2207 if (COMPOSING_P (coding))
2208 DECODE_COMPOSITION_END ('1'); 2208 DECODE_COMPOSITION_END ('1');
2209 src = src_base; 2209 src = src_base;
2210 c = *src++; 2210 c = *src++;
2211 if (! NILP (translation_table))
2212 c = translate_char (translation_table, c, 0, 0, 0);
2211 EMIT_CHAR (c); 2213 EMIT_CHAR (c);
2212 } 2214 }
2213 2215
2214 label_end_of_loop: 2216 label_end_of_loop:
2215 coding->consumed = coding->consumed_char = src_base - source; 2217 coding->consumed = coding->consumed_char = src_base - source;