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:
parent
f7f4ea9f6b
commit
b3277c7d39
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue