diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-09-09 05:30:58 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-09-09 05:30:58 +0000 |
commit | 73221d41887f766e943686efe12cdf6e7822afbd (patch) | |
tree | 072ba91e66ce638b53a8bd05a785248ef00f7f96 /src | |
parent | 0d7a4f8d48bcacdc7854544c88f55f1867d94b5d (diff) | |
download | emacs-73221d41887f766e943686efe12cdf6e7822afbd.tar.gz |
(create_process): Encode the new current dir.
Diffstat (limited to 'src')
-rw-r--r-- | src/process.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 7d84a7ce74c..af7cf2a28fb 100644 --- a/src/process.c +++ b/src/process.c @@ -266,6 +266,8 @@ extern int timers_run; /* Maximum number of bytes to send to a pty without an eof. */ static int pty_max_bytes; +extern Lisp_Object Vfile_name_coding_system; + #ifdef HAVE_PTYS /* The file name of the pty opened by allocate_pty. */ @@ -1453,6 +1455,9 @@ create_process (process, new_argv, current_dir) Protect it from permanent change. */ char **save_environ = environ; + current_dir + = Fencode_coding_string (current_dir, Vfile_name_coding_system, Qt); + #ifndef WINDOWSNT pid = vfork (); if (pid == 0) |