Commit 9642847f authored by Kenichi Handa's avatar Kenichi Handa

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

system_eol_type.
parent 2b89a53f
2006-04-13 Kenichi Handa <handa@m17n.org>
* coding.c (setup_coding_system): Fix previous change.
(encode_coding): If eol_type is not yet decided, use
system_eol_type.
2006-04-13 Nick Roberts <nickrob@snap.net.nz>
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment