From: Kenichi Handa <handa@m17n.org>
Date: Wed, 31 Jul 2002 07:05:17 +0000 (+0000)
Subject: (Fcall_process): Don't call insert_1_both directly if
X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~486
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb4a388429ea9bf8ed5978cf7322c2f8f635d115;p=emacs.git

(Fcall_process): Don't call insert_1_both directly if
we are inserting a process output into a multibyte buffer.
---

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)  */)
 	
 	if (!NILP (buffer))
 	  {
-	    if (! CODING_MAY_REQUIRE_DECODING (&process_coding))
+	    if (NILP (current_buffer->enable_multibyte_characters)
+		&& ! CODING_MAY_REQUIRE_DECODING (&process_coding))
 	      insert_1_both (bufptr, nread, nread, 0, 1, 0);
 	    else
 	      {			/* We have to decode the input.  */