diff options
| author | Eli Zaretskii | 2002-01-07 21:17:32 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-01-07 21:17:32 +0000 |
| commit | fbb70ad9e6e00f3f146b50d3bf433a6ec6ce26c9 (patch) | |
| tree | 050602b1d7769aea5d52a076aa8fa1a7a6c451e7 /src/process.c | |
| parent | 0bd95eb4f6c552e1c37f8643caa8837d2223eb9d (diff) | |
| download | emacs-fbb70ad9e6e00f3f146b50d3bf433a6ec6ce26c9.tar.gz emacs-fbb70ad9e6e00f3f146b50d3bf433a6ec6ce26c9.zip | |
(send_process): Set src_multibyte to 1 after the call
top setup_coding_system, not before the call.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 8 |
1 files changed, 5 insertions, 3 deletions
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) | |||
| 3276 | && !NILP (XBUFFER (object)->enable_multibyte_characters)) | 3276 | && !NILP (XBUFFER (object)->enable_multibyte_characters)) |
| 3277 | || EQ (object, Qt)) | 3277 | || EQ (object, Qt)) |
| 3278 | { | 3278 | { |
| 3279 | coding->src_multibyte = 1; | ||
| 3280 | if (!EQ (coding->symbol, XPROCESS (proc)->encode_coding_system)) | 3279 | if (!EQ (coding->symbol, XPROCESS (proc)->encode_coding_system)) |
| 3281 | /* The coding system for encoding was changed to raw-text | 3280 | /* The coding system for encoding was changed to raw-text |
| 3282 | because we sent a unibyte text previously. Now we are | 3281 | because we sent a unibyte text previously. Now we are |
| 3283 | sending a multibyte text, thus we must encode it by the | 3282 | sending a multibyte text, thus we must encode it by the |
| 3284 | original coding system specified for the current | 3283 | original coding system specified for the current |
| 3285 | process. */ | 3284 | process. */ |
| 3286 | setup_coding_system (XPROCESS (proc)->encode_coding_system, | 3285 | setup_coding_system (XPROCESS (proc)->encode_coding_system, coding); |
| 3287 | coding); | 3286 | /* src_multibyte should be set to 1 _after_ a call to |
| 3287 | setup_coding_system, since it resets src_multibyte to | ||
| 3288 | zero. */ | ||
| 3289 | coding->src_multibyte = 1; | ||
| 3288 | } | 3290 | } |
| 3289 | else | 3291 | else |
| 3290 | { | 3292 | { |