diff options
author | Eli Zaretskii <eliz@gnu.org> | 2002-01-07 21:17:32 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2002-01-07 21:17:32 +0000 |
commit | fbb70ad9e6e00f3f146b50d3bf433a6ec6ce26c9 (patch) | |
tree | 050602b1d7769aea5d52a076aa8fa1a7a6c451e7 | |
parent | 0bd95eb4f6c552e1c37f8643caa8837d2223eb9d (diff) | |
download | emacs-fbb70ad9e6e00f3f146b50d3bf433a6ec6ce26c9.tar.gz |
(send_process): Set src_multibyte to 1 after the call
top setup_coding_system, not before the call.
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/process.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 604695251c6..9461a3285fc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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-07 Jason Rumney <jasonr@gnu.org> * xmenu.c (set_frame_menubar, xmenu_show): diff --git a/src/process.c b/src/process.c index e9f7c59936c..56d3a67e8d1 100644 --- a/src/process.c +++ b/src/process.c @@ -3276,15 +3276,17 @@ 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 sending a multibyte text, thus we must encode it by the original coding system specified for the current process. */ - setup_coding_system (XPROCESS (proc)->encode_coding_system, - coding); + 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 { |