diff src/coding.c @ 69991:c0ec9365428f

(encode_coding): If eol_type is not yet decided, use system_eol_type.
author Kenichi Handa <handa@m17n.org>
date Thu, 13 Apr 2006 04:39:07 +0000
parents c3f0c8cc639e
children 795b4e48c10e
line wrap: on
line diff
--- 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)
     {