aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorMichael Albinus2014-11-07 21:09:34 +0100
committerMichael Albinus2014-11-07 21:09:34 +0100
commit499a7f1cdb8239eed2bc15417f55d2bbeba155d5 (patch)
treee962b1f49d48d0c6c09e90dfc33fd9b78dd756cd /src/callproc.c
parent06ee88e490baa46bc81311f9ade8f01dfe858311 (diff)
downloademacs-499a7f1cdb8239eed2bc15417f55d2bbeba155d5.tar.gz
emacs-499a7f1cdb8239eed2bc15417f55d2bbeba155d5.zip
* callproc.c (encode_current_directory): Encode dir at the end.
Diffstat (limited to 'src/callproc.c')
-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