diff options
Diffstat (limited to 'src/process.c')
| -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; | |||
| 266 | /* Maximum number of bytes to send to a pty without an eof. */ | 266 | /* Maximum number of bytes to send to a pty without an eof. */ |
| 267 | static int pty_max_bytes; | 267 | static int pty_max_bytes; |
| 268 | 268 | ||
| 269 | extern Lisp_Object Vfile_name_coding_system; | ||
| 270 | |||
| 269 | #ifdef HAVE_PTYS | 271 | #ifdef HAVE_PTYS |
| 270 | /* The file name of the pty opened by allocate_pty. */ | 272 | /* The file name of the pty opened by allocate_pty. */ |
| 271 | 273 | ||
| @@ -1453,6 +1455,9 @@ create_process (process, new_argv, current_dir) | |||
| 1453 | Protect it from permanent change. */ | 1455 | Protect it from permanent change. */ |
| 1454 | char **save_environ = environ; | 1456 | char **save_environ = environ; |
| 1455 | 1457 | ||
| 1458 | current_dir | ||
| 1459 | = Fencode_coding_string (current_dir, Vfile_name_coding_system, Qt); | ||
| 1460 | |||
| 1456 | #ifndef WINDOWSNT | 1461 | #ifndef WINDOWSNT |
| 1457 | pid = vfork (); | 1462 | pid = vfork (); |
| 1458 | if (pid == 0) | 1463 | if (pid == 0) |