Mercurial > emacs
changeset 42600:93254645e03b
(send_process): Set src_multibyte to 1 after the call
top setup_coding_system, not before the call.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 07 Jan 2002 21:16:38 +0000 |
parents | c1ce871a167f |
children | ddd4802ff361 |
files | src/process.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Mon Jan 07 12:35:26 2002 +0000 +++ b/src/process.c Mon Jan 07 21:16:38 2002 +0000 @@ -3276,15 +3276,17 @@ && !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 {