changeset 17114:3db7d4038223

(Finsert_file_contents, Fwrite_region): Do not perform character code conversion if enable-multibyte-characters is nil.
author Kenichi Handa <handa@m17n.org>
date Thu, 27 Feb 1997 08:01:34 +0000
parents 5579b391ebbc
children dd39f3c57b3e
files src/fileio.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Thu Feb 27 08:00:26 1997 +0000
+++ b/src/fileio.c	Thu Feb 27 08:01:34 1997 +0000
@@ -3059,7 +3059,9 @@
   /* Decide the coding-system of the file.  */
   {
     Lisp_Object val = Vcoding_system_for_read;
-    if (NILP (val))
+    if (NILP (current_buffer->enable_multibyte_characters))
+      val = Qnil;
+    else if (NILP (val))
       {
 	Lisp_Object args[6], coding_systems;
 
@@ -3622,7 +3624,7 @@
   {
     Lisp_Object val;
 
-    if (auto_saving)
+    if (auto_saving || NILP (current_buffer->enable_multibyte_characters))
       val = Qnil;
     else if (!NILP (Vcoding_system_for_write))
       val = Vcoding_system_for_write;