aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
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}