changeset 24262:1c515a6c0686

(encode_coding_iso2022): Before writing out an invalid code, reset glaphic planes and registers if necessary.
author Kenichi Handa <handa@m17n.org>
date Fri, 05 Feb 1999 05:39:58 +0000
parents 3183582345f0
children e81f007b15fa
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;