aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index dc99354e157..d32a35f31fb 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -3946,6 +3946,9 @@ shrink_decoding_region (beg, end, coding, str)
3946 break; 3946 break;
3947 3947
3948 default: /* i.e. case coding_type_iso2022: */ 3948 default: /* i.e. case coding_type_iso2022: */
3949 if (CODING_SPEC_ISO_INITIAL_DESIGNATION (coding, 0) != CHARSET_ASCII)
3950 /* We can't skip any data. */
3951 break;
3949 if (coding->heading_ascii < 0) 3952 if (coding->heading_ascii < 0)
3950 { 3953 {
3951 /* We can skip all ASCII characters at the head except for a 3954 /* We can skip all ASCII characters at the head except for a
@@ -4087,6 +4090,9 @@ shrink_encoding_region (beg, end, coding, str)
4087 break; 4090 break;
4088 4091
4089 case coding_type_iso2022: 4092 case coding_type_iso2022:
4093 if (CODING_SPEC_ISO_INITIAL_DESIGNATION (coding, 0) != CHARSET_ASCII)
4094 /* We can't skip any data. */
4095 break;
4090 if (coding->flags & CODING_FLAG_ISO_DESIGNATE_AT_BOL) 4096 if (coding->flags & CODING_FLAG_ISO_DESIGNATE_AT_BOL)
4091 { 4097 {
4092 unsigned char *bol = begp; 4098 unsigned char *bol = begp;