From fa46990ee09bec1686b19fa8562c376cc2238598 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 26 May 2000 13:42:03 +0000 Subject: [PATCH] (shrink_decoding_region): Initialize eol_conversion. --- src/coding.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/coding.c b/src/coding.c index 1da6a64bb45..64d7e2afed1 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4128,7 +4128,7 @@ shrink_decoding_region (beg, end, coding, str) if (!NILP (CHAR_TABLE_REF (translation_table, i))) break; if (i < 128) - /* Some ASCII character should be tranlsated. We give up + /* Some ASCII character should be translated. We give up shrinking. */ return; } @@ -4149,6 +4149,9 @@ shrink_decoding_region (beg, end, coding, str) endp_orig = endp = begp + *end - *beg; } + eol_conversion = (coding->eol_type == CODING_EOL_CR + || coding->eol_type == CODING_EOL_CRLF); + switch (coding->type) { case coding_type_sjis: -- 2.39.5