# HG changeset patch # User Kenichi Handa # Date 1144903147 0 # Node ID c0ec9365428f658e51df4b716f34a2ecbc9dcf4e # Parent 92f0b81bdaa37c398b9bcfb28dd99af49ef215dc (encode_coding): If eol_type is not yet decided, use system_eol_type. diff -r 92f0b81bdaa3 -r c0ec9365428f src/coding.c --- a/src/coding.c Thu Apr 13 04:25:44 2006 +0000 +++ b/src/coding.c Thu Apr 13 04:39:07 2006 +0000 @@ -4998,6 +4998,8 @@ coding->consumed = coding->consumed_char = 0; coding->errors = 0; coding->result = CODING_FINISH_NORMAL; + if (coding->eol_type == CODING_EOL_UNDECIDED) + coding->eol_type = system_eol_type; switch (coding->type) {