aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorKenichi Handa1997-06-09 12:59:22 +0000
committerKenichi Handa1997-06-09 12:59:22 +0000
commit776b95cb4813ba17fa048d85cb0e3508aaecdfdf (patch)
treecc23153c468f2024200eba8b3788897b4c4ba7cb /src/callproc.c
parenta5825a24c3ffbd25771106fb2469308687fd9a0f (diff)
downloademacs-776b95cb4813ba17fa048d85cb0e3508aaecdfdf.tar.gz
emacs-776b95cb4813ba17fa048d85cb0e3508aaecdfdf.zip
(Fcall_process): Pay attention to
Vdefault_process_coding_system. (Fcall_process_region): Likewise.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 958ad19fb82..04484dd55e7 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -251,7 +251,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
251 args2[0] = Qcall_process; 251 args2[0] = Qcall_process;
252 for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; 252 for (i = 0; i < nargs; i++) args2[i + 1] = args[i];
253 coding_systems = Ffind_coding_system (nargs + 1, args2); 253 coding_systems = Ffind_coding_system (nargs + 1, args2);
254 val = CONSP (coding_systems) ? XCONS (coding_systems)->cdr : Qnil; 254 if (CONSP (coding_systems))
255 val = XCONS (coding_systems)->cdr;
256 else if (CONSP (Vdefault_process_coding_system))
257 val = XCONS (Vdefault_process_coding_system)->cdr;
255 } 258 }
256 setup_coding_system (Fcheck_coding_system (val), &argument_coding); 259 setup_coding_system (Fcheck_coding_system (val), &argument_coding);
257 } 260 }
@@ -272,7 +275,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
272 for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; 275 for (i = 0; i < nargs; i++) args2[i + 1] = args[i];
273 coding_systems = Ffind_coding_system (nargs + 1, args2); 276 coding_systems = Ffind_coding_system (nargs + 1, args2);
274 } 277 }
275 val = CONSP (coding_systems) ? XCONS (coding_systems)->car : Qnil; 278 if (CONSP (coding_systems))
279 val = XCONS (coding_systems)->car;
280 else if (CONSP (Vdefault_process_coding_system))
281 val = XCONS (Vdefault_process_coding_system)->car;
276 } 282 }
277 setup_coding_system (Fcheck_coding_system (val), &process_coding); 283 setup_coding_system (Fcheck_coding_system (val), &process_coding);
278 } 284 }
@@ -775,10 +781,13 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
775 args2[0] = Qcall_process_region; 781 args2[0] = Qcall_process_region;
776 for (i = 0; i < nargs; i++) args2[i + 1] = args[i]; 782 for (i = 0; i < nargs; i++) args2[i + 1] = args[i];
777 coding_systems = Ffind_coding_system (nargs + 1, args2); 783 coding_systems = Ffind_coding_system (nargs + 1, args2);
778 val = CONSP (coding_systems) ? XCONS (coding_systems)->cdr : Qnil; 784 if (CONSP (coding_systems))
785 val = XCONS (coding_systems)->cdr;
786 else if (CONSP (Vdefault_process_coding_system))
787 val = XCONS (Vdefault_process_coding_system)->car;
779 } 788 }
780 specbind (intern ("coding-system-for-write"), val); 789 specbind (intern ("coding-system-for-write"), val);
781 Fwrite_region (start, end, filename_string, Qnil, Qlambda, Qnil, Qnil); 790 Fwrite_region (start, end, filename_string, Qnil, Qlambda, Qnil);
782 791
783#ifdef DOS_NT 792#ifdef DOS_NT
784 if (NILP (Vbinary_process_input)) 793 if (NILP (Vbinary_process_input))