Fix setting buffer unibyte when reading from a device

* src/fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
to make a (possibly non-empty) buffer unibyte.  (Bug#22096)
This commit is contained in:
Eli Zaretskii 2015-12-11 10:25:37 +02:00
parent f7f4ea9f6b
commit b3277c7d39

View file

@ -4265,7 +4265,7 @@ by calling `format-decode', which see. */)
&& NILP (replace))
/* Visiting a file with these coding system makes the buffer
unibyte. */
bset_enable_multibyte_characters (current_buffer, Qnil);
Fset_buffer_multibyte (Qnil);
}
coding.dst_multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters));