]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finsert_file_contents): If reading into a unibyte
authorRichard M. Stallman <rms@gnu.org>
Wed, 7 Jul 1999 22:49:31 +0000 (22:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 7 Jul 1999 22:49:31 +0000 (22:49 +0000)
buffer, suppress character code conversion.

src/fileio.c

index 702d9ac129980a65530bb1d1d0a37a4a1ea5497e..84defeb05d54c9b347ffdfa86ca528626a7d0d68 100644 (file)
@@ -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);
     }