changeset 69950:4f5b486af1b5

(setup_coding_system): Use system_eol_type for default coding->eol_type.
author Kenichi Handa <handa@m17n.org>
date Wed, 12 Apr 2006 05:47:20 +0000
parents d0312c3f2374
children 03ab16f0dbb3
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Wed Apr 12 05:23:27 2006 +0000
+++ b/src/coding.c	Wed Apr 12 05:47:20 2006 +0000
@@ -3621,7 +3621,7 @@
 	= CODING_REQUIRE_DECODING_MASK | CODING_REQUIRE_ENCODING_MASK;
     }
   else
-    coding->eol_type = CODING_EOL_LF;
+    coding->eol_type = system_eol_type;
 
   coding_type = XVECTOR (coding_spec)->contents[0];
   /* Try short cut.  */
@@ -3922,7 +3922,7 @@
   coding->type = coding_type_no_conversion;
   coding->category_idx = CODING_CATEGORY_IDX_BINARY;
   coding->common_flags = 0;
-  coding->eol_type = CODING_EOL_LF;
+  coding->eol_type = NILP (coding_system) ? system_eol_type : CODING_EOL_LF;
   coding->pre_write_conversion = coding->post_read_conversion = Qnil;
   return -1;
 }