comparison src/coding.c @ 69950:4f5b486af1b5

(setup_coding_system): Use system_eol_type for default coding->eol_type.
author Kenichi Handa <handa@m17n.org>
date Wed, 12 Apr 2006 05:47:20 +0000
parents be24f5428cef
children c3f0c8cc639e
comparison
equal deleted inserted replaced
69949:d0312c3f2374 69950:4f5b486af1b5
3619 coding->eol_type = CODING_EOL_CR; 3619 coding->eol_type = CODING_EOL_CR;
3620 coding->common_flags 3620 coding->common_flags
3621 = CODING_REQUIRE_DECODING_MASK | CODING_REQUIRE_ENCODING_MASK; 3621 = CODING_REQUIRE_DECODING_MASK | CODING_REQUIRE_ENCODING_MASK;
3622 } 3622 }
3623 else 3623 else
3624 coding->eol_type = CODING_EOL_LF; 3624 coding->eol_type = system_eol_type;
3625 3625
3626 coding_type = XVECTOR (coding_spec)->contents[0]; 3626 coding_type = XVECTOR (coding_spec)->contents[0];
3627 /* Try short cut. */ 3627 /* Try short cut. */
3628 if (SYMBOLP (coding_type)) 3628 if (SYMBOLP (coding_type))
3629 { 3629 {
3920 3920
3921 label_invalid_coding_system: 3921 label_invalid_coding_system:
3922 coding->type = coding_type_no_conversion; 3922 coding->type = coding_type_no_conversion;
3923 coding->category_idx = CODING_CATEGORY_IDX_BINARY; 3923 coding->category_idx = CODING_CATEGORY_IDX_BINARY;
3924 coding->common_flags = 0; 3924 coding->common_flags = 0;
3925 coding->eol_type = CODING_EOL_LF; 3925 coding->eol_type = NILP (coding_system) ? system_eol_type : CODING_EOL_LF;
3926 coding->pre_write_conversion = coding->post_read_conversion = Qnil; 3926 coding->pre_write_conversion = coding->post_read_conversion = Qnil;
3927 return -1; 3927 return -1;
3928 } 3928 }
3929 3929
3930 /* Free memory blocks allocated for storing composition information. */ 3930 /* Free memory blocks allocated for storing composition information. */