changeset 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 6ccce3af0d2a
children b43a8099ffb7
files src/fileio.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
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);
     }