diff options
| author | Kenichi Handa | 2005-01-18 00:11:43 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2005-01-18 00:11:43 +0000 |
| commit | 2d4430a8eb6b2291fcda99aa281dae72dbc123a8 (patch) | |
| tree | f46504fac4fe372c37b11925ea9c1c2a58846e4e /src/coding.c | |
| parent | 0a926c02d7f4cc65ef6ac33a706c182ba17f5920 (diff) | |
| download | emacs-2d4430a8eb6b2291fcda99aa281dae72dbc123a8.tar.gz emacs-2d4430a8eb6b2291fcda99aa281dae72dbc123a8.zip | |
(decode_coding_iso2022): Translate invalid codes if
translation-table is specified.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
| 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 | ||