(Fcall_process): Reject encoding arguments by
ascii-incompatible coding systems (e.g. utf-16).
This commit is contained in:
parent
0c2660c849
commit
8acb7dad7a
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,15 @@
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue