Mercurial > emacs
diff src/coding.c @ 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 | 8be9e4c6d687 |
| children | 7beb78bc1f8e |
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); }
