comparison src/coding.c @ 89730:d8fcefca5cf6

(decode_coding_sjis): Check the first byte rigidly.
author Kenichi Handa <handa@m17n.org>
date Sat, 24 Jan 2004 09:13:19 +0000
parents 9bfefb13fe83
children 8acde12aba89
comparison
equal deleted inserted replaced
89729:26b6b7710a08 89730:d8fcefca5cf6
4023 ONE_MORE_BYTE (c); 4023 ONE_MORE_BYTE (c);
4024 if (c < 0) 4024 if (c < 0)
4025 goto invalid_code; 4025 goto invalid_code;
4026 if (c < 0x80) 4026 if (c < 0x80)
4027 charset = charset_roman; 4027 charset = charset_roman;
4028 else if (c == 0x80)
4029 goto invalid_code;
4028 else 4030 else
4029 { 4031 {
4030 if (c >= 0xF0) 4032 if (c >= 0xF0)
4031 goto invalid_code; 4033 goto invalid_code;
4032 if (c < 0xA0 || c >= 0xE0) 4034 if (c < 0xA0 || c >= 0xE0)