diff options
author | Kenichi Handa <handa@m17n.org> | 2006-04-12 05:48:37 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2006-04-12 05:48:37 +0000 |
commit | 957b3c5f2f6280605908e0b7694bead9539082b4 (patch) | |
tree | c9dee674572fa43e330a6e77843dc817b66c1e02 /src/coding.c | |
parent | 163cb72dcb641bd2e68d3b6887cfef71bb1464ae (diff) | |
download | emacs-957b3c5f2f6280605908e0b7694bead9539082b4.tar.gz |
(setup_coding_system): Use system_eol_type for default
coding->eol_type.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 4 |
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) = 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; } |