comparison src/coding.c @ 106564:fea46c7aca79

(decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19) in 8-bit encoding.
author Kenichi Handa <handa@m17n.org>
date Mon, 14 Dec 2009 01:19:28 +0000
parents ba3ffbd9c422
children 1d1d5d9bd884
comparison
equal deleted inserted replaced
106563:b07b0e49769d 106564:fea46c7aca79
3724 CODING_ISO_INVOCATION (coding, 0) = 0; 3724 CODING_ISO_INVOCATION (coding, 0) = 0;
3725 charset_id_0 = CODING_ISO_INVOKED_CHARSET (coding, 0); 3725 charset_id_0 = CODING_ISO_INVOKED_CHARSET (coding, 0);
3726 continue; 3726 continue;
3727 3727
3728 case ISO_single_shift_2_7: 3728 case ISO_single_shift_2_7:
3729 if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS))
3730 goto invalid_code;
3729 case ISO_single_shift_2: 3731 case ISO_single_shift_2:
3730 if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SINGLE_SHIFT)) 3732 if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SINGLE_SHIFT))
3731 goto invalid_code; 3733 goto invalid_code;
3732 /* SS2 is handled as an escape sequence of ESC 'N' */ 3734 /* SS2 is handled as an escape sequence of ESC 'N' */
3733 c1 = 'N'; 3735 c1 = 'N';