1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 11:50:51 -08:00

(setup_coding_system): Use system_eol_type for default

coding->eol_type.
This commit is contained in:
Kenichi Handa 2006-04-12 05:48:37 +00:00
parent 163cb72dcb
commit 957b3c5f2f
2 changed files with 7 additions and 2 deletions

View 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;
}