X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fprocess.c;h=b5f71034e175f9680265de9d73c06dc5dc660dfa;hb=041003d517e9ccc7b59405c85a2fe98cfc4dcc15;hp=f555019cf2453f3f9b4404889cbd6a78b5f245bc;hpb=042cabb13b0419d8aa5cfac9e087d78730d1dbc7;p=chise%2Fxemacs-chise.git.1 diff --git a/src/process.c b/src/process.c index f555019..b5f7103 100644 --- a/src/process.c +++ b/src/process.c @@ -1,5 +1,5 @@ /* Asynchronous subprocess control for XEmacs. - Copyright (C) 1985, 1986, 1987, 1988, 1992, 1993, 1994, 1995 + Copyright (C) 1985, 1986, 1987, 1988, 1992, 1993, 1994, 1995, 2003 Free Software Foundation, Inc. Copyright (C) 1995 Sun Microsystems, Inc. Copyright (C) 1995, 1996 Ben Wing. @@ -564,8 +564,8 @@ BUFFER is the buffer or (buffer-name) to associate with the process. with any buffer Third arg is program file name. It is searched for as in the shell. Remaining arguments are strings to give program as arguments. -INCODE and OUTCODE specify the coding-system objects used in input/output - from/to the process. +If bound, `coding-system-for-read' and `coding-system-for-write' specify + the coding-system objects used in input from and output to the process. */ (int nargs, Lisp_Object *args)) { @@ -573,6 +573,7 @@ INCODE and OUTCODE specify the coding-system objects used in input/output /* !!#### This function has not been Mule-ized */ Lisp_Object buffer, name, program, process, current_dir; Lisp_Object tem; + int i; int speccount = specpdl_depth (); struct gcpro gcpro1, gcpro2, gcpro3; @@ -589,6 +590,8 @@ INCODE and OUTCODE specify the coding-system objects used in input/output CHECK_STRING (name); CHECK_STRING (program); + for (i = 3; i < nargs; ++i) + CHECK_STRING (args[i]); /* Make sure that the child will be able to chdir to the current buffer's current directory, or its unhandled equivalent. We @@ -756,8 +759,8 @@ against lost packets. event_stream_select_process (XPROCESS (process)); - UNGCPRO; NUNGCPRO; + UNGCPRO; return process; }