changeset 21049:01e626b0a624

(Vdefault_file_name_coding_system): Extern it. (create_process): Use ENCODE_FILE.
author Kenichi Handa <handa@m17n.org>
date Tue, 03 Mar 1998 07:18:46 +0000
parents 4d1d3581eeb4
children 13e905e1d33c
files src/process.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Tue Mar 03 07:18:46 1998 +0000
+++ b/src/process.c	Tue Mar 03 07:18:46 1998 +0000
@@ -266,7 +266,7 @@
 /* Maximum number of bytes to send to a pty without an eof.  */
 static int pty_max_bytes;
 
-extern Lisp_Object Vfile_name_coding_system;
+extern Lisp_Object Vfile_name_coding_system, Vdefault_file_name_coding_system;
 
 #ifdef HAVE_PTYS
 /* The file name of the pty opened by allocate_pty.  */
@@ -1487,8 +1487,7 @@
        Protect it from permanent change.  */
     char **save_environ = environ;
 
-    current_dir
-      = Fencode_coding_string (current_dir, Vfile_name_coding_system, Qt);
+    current_dir = ENCODE_FILE (current_dir);
 
 #ifndef WINDOWSNT
     pid = vfork ();