Commit 1c91457d authored by Kenichi Handa's avatar Kenichi Handa

(decode_coding): Fix handling of invalid bytes.

parent 9fe76e1b
......@@ -6208,7 +6208,9 @@ decode_coding (coding)
{
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment