aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 73424daaa0c..21741ad8740 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -150,8 +150,6 @@ encode_current_directory (void)
150 150
151 dir = expand_and_dir_to_file (dir, Qnil); 151 dir = expand_and_dir_to_file (dir, Qnil);
152 152
153 if (STRING_MULTIBYTE (dir))
154 dir = ENCODE_FILE (dir);
155 if (NILP (Ffile_accessible_directory_p (dir))) 153 if (NILP (Ffile_accessible_directory_p (dir)))
156 report_file_error ("Setting current directory", 154 report_file_error ("Setting current directory",
157 BVAR (current_buffer, directory)); 155 BVAR (current_buffer, directory));
@@ -160,6 +158,9 @@ encode_current_directory (void)
160 if (! NILP (Fstring_match (build_string ("^/:"), dir, Qnil))) 158 if (! NILP (Fstring_match (build_string ("^/:"), dir, Qnil)))
161 dir = Fsubstring (dir, make_number (2), Qnil); 159 dir = Fsubstring (dir, make_number (2), Qnil);
162 160
161 if (STRING_MULTIBYTE (dir))
162 dir = ENCODE_FILE (dir);
163
163 RETURN_UNGCPRO (dir); 164 RETURN_UNGCPRO (dir);
164} 165}
165 166