Commit 499a7f1c authored by Michael Albinus's avatar Michael Albinus

* callproc.c (encode_current_directory): Encode dir at the end.

parent 06ee88e4
......@@ -150,8 +150,6 @@ encode_current_directory (void)
dir = expand_and_dir_to_file (dir, Qnil);
if (STRING_MULTIBYTE (dir))
dir = ENCODE_FILE (dir);
if (NILP (Ffile_accessible_directory_p (dir)))
report_file_error ("Setting current directory",
BVAR (current_buffer, directory));
......@@ -160,6 +158,9 @@ encode_current_directory (void)
if (! NILP (Fstring_match (build_string ("^/:"), dir, Qnil)))
dir = Fsubstring (dir, make_number (2), Qnil);
if (STRING_MULTIBYTE (dir))
dir = ENCODE_FILE (dir);
RETURN_UNGCPRO (dir);
}
......
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