# HG changeset patch # User Richard M. Stallman # Date 931387771 0 # Node ID 27a1d7a4c4444053d90b39409ab741d38c49f860 # Parent 6ccce3af0d2adc2f03c3cff806bc3b411ea3a7aa (Finsert_file_contents): If reading into a unibyte buffer, suppress character code conversion. diff -r 6ccce3af0d2a -r 27a1d7a4c444 src/fileio.c --- a/src/fileio.c Wed Jul 07 22:48:37 1999 +0000 +++ b/src/fileio.c Wed Jul 07 22:49:31 1999 +0000 @@ -3539,10 +3539,10 @@ 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 @@ 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); }