# HG changeset patch # User Kenichi Handa # Date 918193198 0 # Node ID 1c515a6c068645ba3cadd05fe1cff5c8f706d148 # Parent 3183582345f076df603b65d56480f796f9fecc08 (encode_coding_iso2022): Before writing out an invalid code, reset glaphic planes and registers if necessary. diff -r 3183582345f0 -r 1c515a6c0686 src/coding.c --- a/src/coding.c Thu Feb 04 15:57:23 1999 +0000 +++ b/src/coding.c Fri Feb 05 05:39:58 1999 +0000 @@ -1982,6 +1982,8 @@ 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;