From: Kenichi Handa Date: Fri, 5 Feb 1999 05:39:58 +0000 (+0000) Subject: (encode_coding_iso2022): Before writing out an invalid X-Git-Tag: emacs-20.4~687 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3efbce959e15a1fcfee5181653902bedc0724bce;p=emacs.git (encode_coding_iso2022): Before writing out an invalid code, reset glaphic planes and registers if necessary. --- 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;