aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>1998-10-12 12:00:44 +0000
committerKenichi Handa <[email protected]>1998-10-12 12:00:44 +0000
commit622fece5320c948892fb2d07e14758ac32e1915f (patch)
tree8592b034ebba62e433ccf928624cf979a65bfdd3 /src/coding.c
parentdbda4aad5605d7b984de04c89bd3a7024eb9a4a8 (diff)
(shrink_decoding_region): If a charset other than ascii
is initially designated to G0, don't shrink the region. (shrink_encoding_region): Likewise.
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 dc99354e15..d32a35f31f 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -3946,6 +3946,9 @@ shrink_decoding_region (beg, end, coding, str)
break;
default: /* i.e. case coding_type_iso2022: */
+ if (CODING_SPEC_ISO_INITIAL_DESIGNATION (coding, 0) != CHARSET_ASCII)
+ /* We can't skip any data. */
+ break;
if (coding->heading_ascii < 0)
{
/* We can skip all ASCII characters at the head except for a
@@ -4087,6 +4090,9 @@ shrink_encoding_region (beg, end, coding, str)
break;
case coding_type_iso2022:
+ if (CODING_SPEC_ISO_INITIAL_DESIGNATION (coding, 0) != CHARSET_ASCII)
+ /* We can't skip any data. */
+ break;
if (coding->flags & CODING_FLAG_ISO_DESIGNATE_AT_BOL)
{
unsigned char *bol = begp;