Mercurial > emacs
diff src/fileio.c @ 24932:27a1d7a4c444
(Finsert_file_contents): If reading into a unibyte
buffer, suppress character code conversion.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 07 Jul 1999 22:49:31 +0000 |
parents | 804955a16819 |
children | c79dc141ef5a |
line wrap: on
line diff
--- 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); }