Mercurial > emacs
diff src/process.c @ 19837:3bee81323f73
(create_process): Encode the new current dir.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 09 Sep 1997 05:30:58 +0000 |
| parents | cb9a9d17bd69 |
| children | ca258a32a122 |
line wrap: on
line diff
--- a/src/process.c Tue Sep 09 02:59:34 1997 +0000 +++ b/src/process.c Tue Sep 09 05:30:58 1997 +0000 @@ -266,6 +266,8 @@ /* 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 @@ 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)
