summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1999-02-05 05:39:58 +0000
committerKenichi Handa <handa@m17n.org>1999-02-05 05:39:58 +0000
commit3efbce959e15a1fcfee5181653902bedc0724bce (patch)
tree272d722ab5e051fa557383907c06b98516a7adf5 /src/coding.c
parent4de8f97e38a16a904820166af6899e1c1bca5dcf (diff)
downloademacs-3efbce959e15a1fcfee5181653902bedc0724bce.tar.gz
(encode_coding_iso2022): Before writing out an invalid
code, reset glaphic planes and registers if necessary.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index 8e6822eac76..298b3707686 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1982,6 +1982,8 @@ encode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
break;
case EMACS_invalid_code:
+ if (coding->flags & CODING_FLAG_ISO_RESET_AT_CNTL)
+ ENCODE_RESET_PLANE_AND_REGISTER;
*dst++ = c1;
coding->consumed_char++;
break;