1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 12:40:56 -08:00

(encode_coding): If eol_type is not yet decided, use

system_eol_type.
This commit is contained in:
Kenichi Handa 2006-04-13 04:39:20 +00:00
parent 2b89a53fc4
commit 9642847f36
2 changed files with 4 additions and 0 deletions

View file

@ -4998,6 +4998,8 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes)
coding->consumed = coding->consumed_char = 0;
coding->errors = 0;
coding->result = CODING_FINISH_NORMAL;
if (coding->eol_type == CODING_EOL_UNDECIDED)
coding->eol_type = system_eol_type;
switch (coding->type)
{