1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-21 05:00:47 -08:00

(decode_coding_sjis): Check bytes more rigidly.

This commit is contained in:
Kenichi Handa 2003-07-09 02:16:17 +00:00
parent 2c3f5fc909
commit 7487494c9d

View file

@ -3987,12 +3987,14 @@ decode_coding_sjis (coding)
SJIS_TO_JIS (c);
charset = charset_kanji;
}
else
else if (c > 0xA0)
{
/* SJIS -> JISX0201-Kana */
c &= 0x7F;
charset = charset_kana;
}
else
goto invalid_code;
}
if (charset->id != charset_ascii
&& last_id != charset->id)