aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-07-31 07:05:17 +0000
committerKenichi Handa2002-07-31 07:05:17 +0000
commitbb4a388429ea9bf8ed5978cf7322c2f8f635d115 (patch)
treee7cd195d3f8c7fd56dbdd5da116ed2a18bf7bacb /src
parenta3a303df4e5c81d27c1f787e806edf75d93b0c2c (diff)
downloademacs-bb4a388429ea9bf8ed5978cf7322c2f8f635d115.tar.gz
emacs-bb4a388429ea9bf8ed5978cf7322c2f8f635d115.zip
(Fcall_process): Don't call insert_1_both directly if
we are inserting a process output into a multibyte buffer.
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index bee100fc3c6..da3654a3411 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -764,7 +764,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
764 764
765 if (!NILP (buffer)) 765 if (!NILP (buffer))
766 { 766 {
767 if (! CODING_MAY_REQUIRE_DECODING (&process_coding)) 767 if (NILP (current_buffer->enable_multibyte_characters)
768 && ! CODING_MAY_REQUIRE_DECODING (&process_coding))
768 insert_1_both (bufptr, nread, nread, 0, 1, 0); 769 insert_1_both (bufptr, nread, nread, 0, 1, 0);
769 else 770 else
770 { /* We have to decode the input. */ 771 { /* We have to decode the input. */