diff options
| -rw-r--r-- | src/process.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 35fca18ff28..49dcaea467c 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -3075,6 +3075,12 @@ read_process_output (proc, channel) | |||
| 3075 | bcopy (chars + coding->consumed, XSTRING (p->decoding_buf)->data, | 3075 | bcopy (chars + coding->consumed, XSTRING (p->decoding_buf)->data, |
| 3076 | carryover); | 3076 | carryover); |
| 3077 | XSETINT (p->decoding_carryover, carryover); | 3077 | XSETINT (p->decoding_carryover, carryover); |
| 3078 | /* Adjust the multibyteness of TEXT to that of the buffer. */ | ||
| 3079 | if (NILP (current_buffer->enable_multibyte_characters) | ||
| 3080 | != ! STRING_MULTIBYTE (text)) | ||
| 3081 | text = (STRING_MULTIBYTE (text) | ||
| 3082 | ? Fstring_as_unibyte (text) | ||
| 3083 | : Fstring_as_multibyte (text)); | ||
| 3078 | nbytes = STRING_BYTES (XSTRING (text)); | 3084 | nbytes = STRING_BYTES (XSTRING (text)); |
| 3079 | nchars = XSTRING (text)->size; | 3085 | nchars = XSTRING (text)->size; |
| 3080 | insert_from_string_before_markers (text, 0, 0, nchars, nbytes, 0); | 3086 | insert_from_string_before_markers (text, 0, 0, nchars, nbytes, 0); |