diff options
| author | Kenichi Handa | 1999-10-04 00:12:34 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-10-04 00:12:34 +0000 |
| commit | 251aeb2451597b9aed066c248a551234d399357c (patch) | |
| tree | 9681e16083338666e6890eca75d1c7e84f40f794 /src/coding.c | |
| parent | 362bc2da509ff32b029745bd016953ae70d78f12 (diff) | |
| download | emacs-251aeb2451597b9aed066c248a551234d399357c.tar.gz emacs-251aeb2451597b9aed066c248a551234d399357c.zip | |
(DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
correctly.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c index 534a5f75d23..5a4a4c8c9a6 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -224,10 +224,10 @@ encode_coding_XXX (coding, source, destination, src_bytes, dst_bytes) | |||
| 224 | } \ | 224 | } \ |
| 225 | else \ | 225 | else \ |
| 226 | { \ | 226 | { \ |
| 227 | *dst++ = (c); \ | 227 | /* If ASCII charset is invoked to GR, \ |
| 228 | we must reset MSB now. */ \ | ||
| 229 | *dst++ = (c) & 0x7F; \ | ||
| 228 | coding->produced_char++; \ | 230 | coding->produced_char++; \ |
| 229 | if ((c) >= 0x80) \ | ||
| 230 | coding->fake_multibyte = 1; \ | ||
| 231 | } \ | 231 | } \ |
| 232 | } while (0) | 232 | } while (0) |
| 233 | 233 | ||