Commit 3efbce95 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(encode_coding_iso2022): Before writing out an invalid

code, reset glaphic planes and registers if necessary.
parent 4de8f97e
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment