Mercurial > emacs
changeset 90243:c59afb15f5c6
(decode_coding): Fix handling of invalid bytes.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sat, 15 Oct 2005 02:09:14 +0000 |
parents | 5e2d3828e89f |
children | bf08376ae834 |
files | src/coding.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Sat Oct 15 00:26:05 2005 +0000 +++ b/src/coding.c Sat Oct 15 02:09:14 2005 +0000 @@ -6208,7 +6208,9 @@ { int c = *src++; - coding->charbuf[coding->charbuf_used++] = (c & 0x80 ? - c : c); + if (c & 0x80) + c = BYTE8_TO_CHAR (c); + coding->charbuf[coding->charbuf_used++] = c; } produce_chars (coding, Qnil, 1); }