aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2006-04-12 05:48:37 +0000
committerKenichi Handa2006-04-12 05:48:37 +0000
commit957b3c5f2f6280605908e0b7694bead9539082b4 (patch)
treec9dee674572fa43e330a6e77843dc817b66c1e02 /src/coding.c
parent163cb72dcb641bd2e68d3b6887cfef71bb1464ae (diff)
downloademacs-957b3c5f2f6280605908e0b7694bead9539082b4.tar.gz
emacs-957b3c5f2f6280605908e0b7694bead9539082b4.zip
(setup_coding_system): Use system_eol_type for default
coding->eol_type.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 105d4038b1f..3ffc976079c 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -3621,7 +3621,7 @@ setup_coding_system (coding_system, coding)
3621 = CODING_REQUIRE_DECODING_MASK | CODING_REQUIRE_ENCODING_MASK; 3621 = CODING_REQUIRE_DECODING_MASK | CODING_REQUIRE_ENCODING_MASK;
3622 } 3622 }
3623 else 3623 else
3624 coding->eol_type = CODING_EOL_LF; 3624 coding->eol_type = system_eol_type;
3625 3625
3626 coding_type = XVECTOR (coding_spec)->contents[0]; 3626 coding_type = XVECTOR (coding_spec)->contents[0];
3627 /* Try short cut. */ 3627 /* Try short cut. */
@@ -3922,7 +3922,7 @@ setup_coding_system (coding_system, coding)
3922 coding->type = coding_type_no_conversion; 3922 coding->type = coding_type_no_conversion;
3923 coding->category_idx = CODING_CATEGORY_IDX_BINARY; 3923 coding->category_idx = CODING_CATEGORY_IDX_BINARY;
3924 coding->common_flags = 0; 3924 coding->common_flags = 0;
3925 coding->eol_type = CODING_EOL_LF; 3925 coding->eol_type = NILP (coding_system) ? system_eol_type : CODING_EOL_LF;
3926 coding->pre_write_conversion = coding->post_read_conversion = Qnil; 3926 coding->pre_write_conversion = coding->post_read_conversion = Qnil;
3927 return -1; 3927 return -1;
3928} 3928}