comparison src/fileio.c @ 22613:285822d24189

(Finsert_file_contents): Call setup_raw_text_coding_system.
author Kenichi Handa <handa@m17n.org>
date Fri, 26 Jun 1998 03:29:15 +0000
parents 7bf1faa656c9
children 9f320d762e2f
comparison
equal deleted inserted replaced
22612:6def3da74c7c 22613:285822d24189
3499 3499
3500 setup_coding_system (Fcheck_coding_system (val), &coding); 3500 setup_coding_system (Fcheck_coding_system (val), &coding);
3501 3501
3502 if (NILP (Vcoding_system_for_read) 3502 if (NILP (Vcoding_system_for_read)
3503 && NILP (current_buffer->enable_multibyte_characters)) 3503 && NILP (current_buffer->enable_multibyte_characters))
3504 { 3504 /* We must suppress all text conversion except for end-of-line
3505 /* We must suppress all text conversion except for end-of-line 3505 conversion. */
3506 conversion. */ 3506 setup_raw_text_coding_system (&coding);
3507 int eol_type;
3508
3509 eol_type = coding.eol_type;
3510 setup_coding_system (Qraw_text, &coding);
3511 coding.eol_type = eol_type;
3512 }
3513 3507
3514 coding_system_decided = 1; 3508 coding_system_decided = 1;
3515 } 3509 }
3516 3510
3517 /* Ensure we always set Vlast_coding_system_used. */ 3511 /* Ensure we always set Vlast_coding_system_used. */
4021 bcopy (&temp_coding, &coding, sizeof coding); 4015 bcopy (&temp_coding, &coding, sizeof coding);
4022 } 4016 }
4023 4017
4024 if (NILP (Vcoding_system_for_read) 4018 if (NILP (Vcoding_system_for_read)
4025 && NILP (current_buffer->enable_multibyte_characters)) 4019 && NILP (current_buffer->enable_multibyte_characters))
4026 { 4020 /* We must suppress all text conversion except for
4027 /* We must suppress all text conversion except for 4021 end-of-line conversion. */
4028 end-of-line conversion. */ 4022 setup_raw_text_coding_system (&coding);
4029 int eol_type;
4030
4031 eol_type = coding.eol_type;
4032 setup_coding_system (Qraw_text, &coding);
4033 coding.eol_type = eol_type;
4034 }
4035 } 4023 }
4036 4024
4037 if (CODING_MAY_REQUIRE_DECODING (&coding)) 4025 if (CODING_MAY_REQUIRE_DECODING (&coding))
4038 { 4026 {
4039 /* Here, we don't have to consider byte combining (see the 4027 /* Here, we don't have to consider byte combining (see the