mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
coding.c (decode_coding_iso_2022): Fix previous change.
This commit is contained in:
parent
1145cc5221
commit
0efe47a860
10
src/coding.c
10
src/coding.c
@ -3736,8 +3736,9 @@ decode_coding_iso_2022 (struct coding_system *coding)
|
||||
charset = CHARSET_FROM_ID (charset_id_2);
|
||||
ONE_MORE_BYTE (c1);
|
||||
if (c1 < 0x20 || (c1 >= 0x80 && c1 < 0xA0)
|
||||
|| ((CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_LEVEL_4)
|
||||
? c1 >= 0x80 : c1 < 0x80))
|
||||
|| (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS)
|
||||
&& ((CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_LEVEL_4)
|
||||
? c1 >= 0x80 : c1 < 0x80)))
|
||||
goto invalid_code;
|
||||
break;
|
||||
|
||||
@ -3752,8 +3753,9 @@ decode_coding_iso_2022 (struct coding_system *coding)
|
||||
charset = CHARSET_FROM_ID (charset_id_3);
|
||||
ONE_MORE_BYTE (c1);
|
||||
if (c1 < 0x20 || (c1 >= 0x80 && c1 < 0xA0)
|
||||
|| ((CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_LEVEL_4)
|
||||
? c1 >= 0x80 : c1 < 0x80))
|
||||
|| (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS)
|
||||
&& ((CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_LEVEL_4)
|
||||
? c1 >= 0x80 : c1 < 0x80)))
|
||||
goto invalid_code;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user