]> git.eshelyaron.com Git - emacs.git/commitdiff
(encode_coding_iso2022): Before writing out an invalid
authorKenichi Handa <handa@m17n.org>
Fri, 5 Feb 1999 05:39:58 +0000 (05:39 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 5 Feb 1999 05:39:58 +0000 (05:39 +0000)
code, reset glaphic planes and registers if necessary.

src/coding.c

index 8e6822eac7664aa454c76b687479cec5b92ab74a..298b3707686fdc1b2f574060d7667d908cc17ab6 100644 (file)
@@ -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;