aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorKenichi Handa2006-05-18 02:20:39 +0000
committerKenichi Handa2006-05-18 02:20:39 +0000
commit8acb7dad7a13f83bec14cb2c6cbe729ece5271ef (patch)
tree58ab2af69364ab49ac1e7d5a96dbbdd98efb1f05 /src/callproc.c
parent0c2660c849293d23296f758c4a50f6e40432cf2e (diff)
downloademacs-8acb7dad7a13f83bec14cb2c6cbe729ece5271ef.tar.gz
emacs-8acb7dad7a13f83bec14cb2c6cbe729ece5271ef.zip
(Fcall_process): Reject encoding arguments by
ascii-incompatible coding systems (e.g. utf-16).
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 8cf261c646f..f23996253f1 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -295,6 +295,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
295 val = Qnil; 295 val = Qnil;
296 } 296 }
297 setup_coding_system (Fcheck_coding_system (val), &argument_coding); 297 setup_coding_system (Fcheck_coding_system (val), &argument_coding);
298 if (argument_coding.common_flags & CODING_ASCII_INCOMPATIBLE_MASK)
299 setup_coding_system (Qraw_text, &argument_coding);
298 if (argument_coding.eol_type == CODING_EOL_UNDECIDED) 300 if (argument_coding.eol_type == CODING_EOL_UNDECIDED)
299 argument_coding.eol_type = system_eol_type; 301 argument_coding.eol_type = system_eol_type;
300 } 302 }