diff options
| author | Kenichi Handa | 1999-02-05 05:39:58 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-02-05 05:39:58 +0000 |
| commit | 3efbce959e15a1fcfee5181653902bedc0724bce (patch) | |
| tree | 272d722ab5e051fa557383907c06b98516a7adf5 /src/coding.c | |
| parent | 4de8f97e38a16a904820166af6899e1c1bca5dcf (diff) | |
| download | emacs-3efbce959e15a1fcfee5181653902bedc0724bce.tar.gz emacs-3efbce959e15a1fcfee5181653902bedc0724bce.zip | |
(encode_coding_iso2022): Before writing out an invalid
code, reset glaphic planes and registers if necessary.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index 8e6822eac76..298b3707686 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1982,6 +1982,8 @@ encode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes) | |||
| 1982 | break; | 1982 | break; |
| 1983 | 1983 | ||
| 1984 | case EMACS_invalid_code: | 1984 | case EMACS_invalid_code: |
| 1985 | if (coding->flags & CODING_FLAG_ISO_RESET_AT_CNTL) | ||
| 1986 | ENCODE_RESET_PLANE_AND_REGISTER; | ||
| 1985 | *dst++ = c1; | 1987 | *dst++ = c1; |
| 1986 | coding->consumed_char++; | 1988 | coding->consumed_char++; |
| 1987 | break; | 1989 | break; |