changeset 22166:917e237b5e65

(shrink_decoding_region): No short cut by coding->heading_ascii if eol conversion is necessary.
author Kenichi Handa <handa@m17n.org>
date Thu, 21 May 1998 01:48:52 +0000
parents 8cdacecac78b
children bb7c53dee594
files src/coding.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu May 21 01:48:52 1998 +0000
+++ b/src/coding.c	Thu May 21 01:48:52 1998 +0000
@@ -3764,7 +3764,9 @@
       return;
     }
 
-  if (coding->heading_ascii >= 0)
+  eol_conversion = (coding->eol_type != CODING_EOL_LF);
+
+  if ((! eol_conversion) && (coding->heading_ascii >= 0))
     /* Detection routine has already found how much we can skip at the
        head.  */
     *beg += coding->heading_ascii;
@@ -3780,8 +3782,6 @@
       endp_orig = endp = begp + *end - *beg;
     }
 
-  eol_conversion = (coding->eol_type != CODING_EOL_LF);
-
   switch (coding->type)
     {
     case coding_type_emacs_mule: