From: Richard M. Stallman Date: Wed, 7 Jul 1999 22:49:31 +0000 (+0000) Subject: (Finsert_file_contents): If reading into a unibyte X-Git-Tag: emacs-20.4~17 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=237a6fd294b5e60a2971e02e79e49ec6ebad856c;p=emacs.git (Finsert_file_contents): If reading into a unibyte buffer, suppress character code conversion. --- diff --git a/src/fileio.c b/src/fileio.c index 702d9ac1299..84defeb05d5 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3539,10 +3539,10 @@ actually used.") setup_coding_system (Fcheck_coding_system (val), &coding); - if (NILP (Vcoding_system_for_read) - && NILP (current_buffer->enable_multibyte_characters)) - /* We must suppress all text conversion except for end-of-line - conversion. */ + if (NILP (current_buffer->enable_multibyte_characters) + && ! NILP (val)) + /* We must suppress all character code conversion except for + end-of-line conversion. */ setup_raw_text_coding_system (&coding); coding_system_decided = 1; @@ -4080,9 +4080,9 @@ actually used.") bcopy (&temp_coding, &coding, sizeof coding); } - if (NILP (Vcoding_system_for_read) - && NILP (current_buffer->enable_multibyte_characters)) - /* We must suppress all text conversion except for + if (NILP (current_buffer->enable_multibyte_characters) + && ! NILP (val)) + /* We must suppress all character code conversion except for end-of-line conversion. */ setup_raw_text_coding_system (&coding); }