]> git.eshelyaron.com Git - emacs.git/commitdiff
(setup_coding_system): Use system_eol_type for default
authorKenichi Handa <handa@m17n.org>
Wed, 12 Apr 2006 05:48:37 +0000 (05:48 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 12 Apr 2006 05:48:37 +0000 (05:48 +0000)
coding->eol_type.

src/ChangeLog
src/coding.c

index 936b14089b49335725b869aee4f9a8a2439ad248..7688664c45de484651011b8c203b24e32ba7145f 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-12  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (setup_coding_system): Use system_eol_type for default
+       coding->eol_type.
+
 2006-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * lisp.h (wrong_type_argument): Mark as NO_RETURN.
index 105d4038b1f59aa08aafc1f76c2d2a1024312afe..3ffc976079cbf7e1f999ce042913aa1f0e6ea07f 100644 (file)
@@ -3621,7 +3621,7 @@ setup_coding_system (coding_system, coding)
        = 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 @@ setup_coding_system (coding_system, coding)
   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;
 }