comparison src/fileio.c @ 89449:0312225e013a

(Finsert_file_contents): Even if we read into a unibyte buffer, check if we must decode the result or not.
author Kenichi Handa <handa@m17n.org>
date Thu, 29 May 2003 13:18:29 +0000
parents 06b495fd070a
children 756c32423971
comparison
equal deleted inserted replaced
89448:de8b460070cc 89449:0312225e013a
4426 /* Visiting a file with these coding system makes the buffer 4426 /* Visiting a file with these coding system makes the buffer
4427 unibyte. */ 4427 unibyte. */
4428 current_buffer->enable_multibyte_characters = Qnil; 4428 current_buffer->enable_multibyte_characters = Qnil;
4429 } 4429 }
4430 4430
4431 if ((! NILP (current_buffer->enable_multibyte_characters) 4431 if ((CODING_REQUIRE_DETECTION (&coding)
4432 || CODING_REQUIRE_DETECTION (&coding)
4433 || CODING_REQUIRE_DECODING (&coding)) 4432 || CODING_REQUIRE_DECODING (&coding))
4434 && (inserted > 0 || CODING_REQUIRE_FLUSHING (&coding))) 4433 && (inserted > 0 || CODING_REQUIRE_FLUSHING (&coding)))
4435 { 4434 {
4436 move_gap_both (PT, PT_BYTE); 4435 move_gap_both (PT, PT_BYTE);
4437 GAP_SIZE += inserted; 4436 GAP_SIZE += inserted;