diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 367a9759848..5682fc015ad 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -3611,7 +3611,7 @@ decode_coding_iso_2022 (struct coding_system *coding) | |||
| 3611 | || CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS) | 3611 | || CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS) |
| 3612 | goto invalid_code; | 3612 | goto invalid_code; |
| 3613 | /* This is a graphic character, we fall down ... */ | 3613 | /* This is a graphic character, we fall down ... */ |
| 3614 | 3614 | FALLTHROUGH; | |
| 3615 | case ISO_graphic_plane_1: | 3615 | case ISO_graphic_plane_1: |
| 3616 | if (charset_id_1 < 0) | 3616 | if (charset_id_1 < 0) |
| 3617 | goto invalid_code; | 3617 | goto invalid_code; |
| @@ -3646,6 +3646,7 @@ decode_coding_iso_2022 (struct coding_system *coding) | |||
| 3646 | case ISO_single_shift_2_7: | 3646 | case ISO_single_shift_2_7: |
| 3647 | if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS)) | 3647 | if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SEVEN_BITS)) |
| 3648 | goto invalid_code; | 3648 | goto invalid_code; |
| 3649 | FALLTHROUGH; | ||
| 3649 | case ISO_single_shift_2: | 3650 | case ISO_single_shift_2: |
| 3650 | if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SINGLE_SHIFT)) | 3651 | if (! (CODING_ISO_FLAGS (coding) & CODING_ISO_FLAG_SINGLE_SHIFT)) |
| 3651 | goto invalid_code; | 3652 | goto invalid_code; |
| @@ -3797,6 +3798,7 @@ decode_coding_iso_2022 (struct coding_system *coding) | |||
| 3797 | { | 3798 | { |
| 3798 | case ']': /* end of the current direction */ | 3799 | case ']': /* end of the current direction */ |
| 3799 | coding->mode &= ~CODING_MODE_DIRECTION; | 3800 | coding->mode &= ~CODING_MODE_DIRECTION; |
| 3801 | break; | ||
| 3800 | 3802 | ||
| 3801 | case '0': /* end of the current direction */ | 3803 | case '0': /* end of the current direction */ |
| 3802 | case '1': /* start of left-to-right direction */ | 3804 | case '1': /* start of left-to-right direction */ |