aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2006-06-08 07:08:36 +0000
committerKenichi Handa2006-06-08 07:08:36 +0000
commit6e50da0a627ef1fd2b4bfd0c7a8be642e36a52e9 (patch)
treee3e424da7f39beb257c03b6b4d61cbc9a31106cb
parent1f42befb93430fa2c563a2c0bc87a29a46f1cdaa (diff)
downloademacs-6e50da0a627ef1fd2b4bfd0c7a8be642e36a52e9.tar.gz
emacs-6e50da0a627ef1fd2b4bfd0c7a8be642e36a52e9.zip
(Fcall_process): Sync with HEAD.
-rw-r--r--src/callproc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 7fd601f4b05..4fcf2ec0eda 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -269,6 +269,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
269 if (nargs >= 5) 269 if (nargs >= 5)
270 { 270 {
271 int must_encode = 0; 271 int must_encode = 0;
272 Lisp_Object coding_attrs;
272 273
273 for (i = 4; i < nargs; i++) 274 for (i = 4; i < nargs; i++)
274 CHECK_STRING (args[i]); 275 CHECK_STRING (args[i]);
@@ -296,6 +297,13 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
296 } 297 }
297 val = coding_inherit_eol_type (val, Qnil); 298 val = coding_inherit_eol_type (val, Qnil);
298 setup_coding_system (Fcheck_coding_system (val), &argument_coding); 299 setup_coding_system (Fcheck_coding_system (val), &argument_coding);
300 coding_attrs = CODING_ID_ATTRS (argument_coding.id);
301 if (NILP (CODING_ATTR_ASCII_COMPAT (coding_attrs)))
302 {
303 /* We should not use an ASCII incompatible coding system. */
304 val = raw_text_coding_system (val);
305 setup_coding_system (val, &argument_coding);
306 }
299 } 307 }
300 } 308 }
301 309