diff options
| author | Richard M. Stallman | 1997-09-09 05:30:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-09 05:30:58 +0000 |
| commit | a932f187fbb0c66e9715c087490cd3c848588b3a (patch) | |
| tree | b9810d9142f060f0bbf6042faa277bfab46c0334 /src/process.c | |
| parent | cfa0a2553d1d311477adc370ddd3233db3bcdcb7 (diff) | |
| download | emacs-a932f187fbb0c66e9715c087490cd3c848588b3a.tar.gz emacs-a932f187fbb0c66e9715c087490cd3c848588b3a.zip | |
(create_process): Encode the new current dir.
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) |