From: Kenichi Handa Date: Thu, 13 Apr 2006 04:39:20 +0000 (+0000) Subject: (encode_coding): If eol_type is not yet decided, use X-Git-Tag: emacs-pretest-22.0.90~3165 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9642847f36380bc6c39bf8d19b907266d72fbd61;p=emacs.git (encode_coding): If eol_type is not yet decided, use system_eol_type. --- diff --git a/src/ChangeLog b/src/ChangeLog index e2da810a4fc..9955aabd0e7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,8 @@ 2006-04-13 Kenichi Handa * coding.c (setup_coding_system): Fix previous change. + (encode_coding): If eol_type is not yet decided, use + system_eol_type. 2006-04-13 Nick Roberts diff --git a/src/coding.c b/src/coding.c index 51e76e51b71..5fb4c202b85 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4998,6 +4998,8 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes) 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) {