# HG changeset patch # User Kenichi Handa # Date 1144904272 0 # Node ID 795b4e48c10e7e221b075f2368b2a765f8729220 # Parent 2e639bf3cd9f99ca3db2044f8e21cb65262bc7e2 (shrink_encoding_region): If eol_type is not yet decided and system_eol_type is not LF, don't shrink. diff -r 2e639bf3cd9f -r 795b4e48c10e src/coding.c --- a/src/coding.c Thu Apr 13 04:39:20 2006 +0000 +++ b/src/coding.c Thu Apr 13 04:57:52 2006 +0000 @@ -5256,6 +5256,8 @@ if (coding->type == coding_type_ccl || coding->eol_type == CODING_EOL_CRLF || coding->eol_type == CODING_EOL_CR + || (coding->eol_type == CODING_EOL_UNDECIDED + && system_eol_type != CODING_EOL_LF) || (coding->cmp_data && coding->cmp_data->used > 0)) { /* We can't skip any data. */