Commit 719c80be authored by Kenichi Handa's avatar Kenichi Handa

(Finsert_file_contents, Fwrite_region): Do not perform

character code conversion if enable-multibyte-characters is nil.
parent b65dbda3
......@@ -3059,7 +3059,9 @@ This does code conversion according to the value of\n\
/* 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 @@ This does code conversion according to the value of\n\
{
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment