aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-11 10:25:37 +0200
committerEli Zaretskii2015-12-11 10:25:37 +0200
commitb3277c7d3913ccedfac36c27ab657901e4f131b4 (patch)
treec37a2802f3ff7e835f3376ea443fa848881ecab8
parentf7f4ea9f6b59add5ae083e59c82f9e8a33eab45c (diff)
downloademacs-b3277c7d3913ccedfac36c27ab657901e4f131b4.tar.gz
emacs-b3277c7d3913ccedfac36c27ab657901e4f131b4.zip
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)
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 6cda1e39eed..8e44eb0d539 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4265,7 +4265,7 @@ by calling `format-decode', which see. */)
4265 && NILP (replace)) 4265 && NILP (replace))
4266 /* Visiting a file with these coding system makes the buffer 4266 /* Visiting a file with these coding system makes the buffer
4267 unibyte. */ 4267 unibyte. */
4268 bset_enable_multibyte_characters (current_buffer, Qnil); 4268 Fset_buffer_multibyte (Qnil);
4269 } 4269 }
4270 4270
4271 coding.dst_multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters)); 4271 coding.dst_multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters));