1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-21 13:10:37 -08:00

(encode_coding_iso2022): Before writing out an invalid

code, reset glaphic planes and registers if necessary.
This commit is contained in:
Kenichi Handa 1999-02-05 05:39:58 +00:00
parent 4de8f97e38
commit 3efbce959e

View 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;