* src/fileio.c (Finsert_file_contents): Fix setting buffer unibyte
when some stuff was actually read. (Bug#22162)
&& NILP (replace))
/* Visiting a file with these coding system makes the buffer
unibyte. */
- Fset_buffer_multibyte (Qnil);
+ if (inserted > 0)
+ bset_enable_multibyte_characters (current_buffer, Qnil);
+ else
+ Fset_buffer_multibyte (Qnil);
}
coding.dst_multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters));