comparison src/coding.c @ 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 c3f0c8cc639e
children 795b4e48c10e
comparison
equal deleted inserted replaced
69990:92f0b81bdaa3 69991:c0ec9365428f
4996 { 4996 {
4997 coding->produced = coding->produced_char = 0; 4997 coding->produced = coding->produced_char = 0;
4998 coding->consumed = coding->consumed_char = 0; 4998 coding->consumed = coding->consumed_char = 0;
4999 coding->errors = 0; 4999 coding->errors = 0;
5000 coding->result = CODING_FINISH_NORMAL; 5000 coding->result = CODING_FINISH_NORMAL;
5001 if (coding->eol_type == CODING_EOL_UNDECIDED)
5002 coding->eol_type = system_eol_type;
5001 5003
5002 switch (coding->type) 5004 switch (coding->type)
5003 { 5005 {
5004 case coding_type_sjis: 5006 case coding_type_sjis:
5005 encode_coding_sjis_big5 (coding, source, destination, 5007 encode_coding_sjis_big5 (coding, source, destination,