changeset 23426:088cb2a804c7

(shrink_decoding_region): If a charset other than ascii is initially designated to G0, don't shrink the region. (shrink_encoding_region): Likewise.
author Kenichi Handa <handa@m17n.org>
date Mon, 12 Oct 1998 12:00:44 +0000
parents 3ae4cc2b716c
children 4acd4faa545a
files src/coding.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Mon Oct 12 12:00:44 1998 +0000
+++ b/src/coding.c	Mon Oct 12 12:00:44 1998 +0000
@@ -3946,6 +3946,9 @@
       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 @@
       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;