mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-23 14:32:12 -07:00
(create_process): Encode the new current dir.
This commit is contained in:
parent
cfa0a2553d
commit
a932f187fb
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue