# HG changeset patch # User Kenichi Handa # Date 1144820840 0 # Node ID 4f5b486af1b575c8772e9145488afa78b60cf71a # Parent d0312c3f2374c7f64619b89a6547e3490bcf5b45 (setup_coding_system): Use system_eol_type for default coding->eol_type. diff -r d0312c3f2374 -r 4f5b486af1b5 src/coding.c --- 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; }