# HG changeset patch # User Kenichi Handa # Date 968289260 0 # Node ID bd258f4dc0fa9f2e6ebd43955d0633c458f1e214 # Parent 4824d81110619f95ae0797a6bcc0c22dbeea39c5 (read_process_output): Before inserting the decoded text in the buffer, adjust the multibyteness. diff -r 4824d8111061 -r bd258f4dc0fa src/process.c --- a/src/process.c Thu Sep 07 01:14:02 2000 +0000 +++ b/src/process.c Thu Sep 07 01:14:20 2000 +0000 @@ -3075,6 +3075,12 @@ bcopy (chars + coding->consumed, XSTRING (p->decoding_buf)->data, carryover); XSETINT (p->decoding_carryover, carryover); + /* Adjust the multibyteness of TEXT to that of the buffer. */ + if (NILP (current_buffer->enable_multibyte_characters) + != ! STRING_MULTIBYTE (text)) + text = (STRING_MULTIBYTE (text) + ? Fstring_as_unibyte (text) + : Fstring_as_multibyte (text)); nbytes = STRING_BYTES (XSTRING (text)); nchars = XSTRING (text)->size; insert_from_string_before_markers (text, 0, 0, nchars, nbytes, 0);