]> git.eshelyaron.com Git - emacs.git/commitdiff
(send_process): Set src_multibyte to 1 after the call
authorEli Zaretskii <eliz@gnu.org>
Mon, 7 Jan 2002 21:21:51 +0000 (21:21 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 7 Jan 2002 21:21:51 +0000 (21:21 +0000)
top setup_coding_system, not before the call.

src/ChangeLog
src/process.c

index a7ea1c3b59368c9bd6b690ff9b3466551b3e002b..74339e14eff681afe321a453bfca6b2e3ef4f256 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * process.c (send_process): Set src_multibyte to 1 after the call
+       top setup_coding_system, not before the call.
+
 2002-01-05  Jason Rumney  <jasonr@gnu.org>
 
        * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor
index 474b21f24761e6b122f385d2a707c242ddc8d430..d1ad9c7d5d56fd4bc2b4b7c556c3ac62b561bf37 100644 (file)
@@ -3276,7 +3276,6 @@ send_process (proc, buf, len, object)
          && !NILP (XBUFFER (object)->enable_multibyte_characters))
       || EQ (object, Qt))
     {
-      coding->src_multibyte = 1;
       if (!EQ (coding->symbol, XPROCESS (proc)->encode_coding_system))
        /* The coding system for encoding was changed to raw-text
           because we sent a unibyte text previously.  Now we are
@@ -3285,6 +3284,10 @@ send_process (proc, buf, len, object)
           process.  */
        setup_coding_system (XPROCESS (proc)->encode_coding_system,
                             coding);
+      /* src_multibyte should be set to 1 _after_ a call to
+        setup_coding_system, since it resets src_multibyte to
+        zero.  */
+      coding->src_multibyte = 1;
     }
   else
     {