Commit 8acb7dad authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(Fcall_process): Reject encoding arguments by

ascii-incompatible coding systems (e.g. utf-16).
parent 0c2660c8
2006-05-18 Kenichi Handa <handa@m17n.org>
* callproc.c (Fcall_process): Reject encoding arguments by
ascii-incompatible coding systems (e.g. utf-16).
* coding.c (Qascii_incompatible): New variable.
(syms_of_coding): Setup Qascii_incompatible.
(setup_coding_system): Be sure to initialize coding->common_flags.
Check `ascii-incompatible' property of the coding system.
* coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
2006-05-18 Kim F. Storm <storm@cua.dk>
 
* xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when
......
......@@ -295,6 +295,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
val = Qnil;
}
setup_coding_system (Fcheck_coding_system (val), &argument_coding);
if (argument_coding.common_flags & CODING_ASCII_INCOMPATIBLE_MASK)
setup_coding_system (Qraw_text, &argument_coding);
if (argument_coding.eol_type == CODING_EOL_UNDECIDED)
argument_coding.eol_type = system_eol_type;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment