Mercurial > emacs
changeset 69991:c0ec9365428f
(encode_coding): If eol_type is not yet decided, use
system_eol_type.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 13 Apr 2006 04:39:07 +0000 |
parents | 92f0b81bdaa3 |
children | 2e639bf3cd9f |
files | src/coding.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Thu Apr 13 04:25:44 2006 +0000 +++ b/src/coding.c Thu Apr 13 04:39:07 2006 +0000 @@ -4998,6 +4998,8 @@ 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) {