From 3efbce959e15a1fcfee5181653902bedc0724bce Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 5 Feb 1999 05:39:58 +0000 Subject: [PATCH] (encode_coding_iso2022): Before writing out an invalid code, reset glaphic planes and registers if necessary. --- src/coding.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2