diff options
| author | Kenichi Handa | 2006-05-18 02:20:39 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-05-18 02:20:39 +0000 |
| commit | 8acb7dad7a13f83bec14cb2c6cbe729ece5271ef (patch) | |
| tree | 58ab2af69364ab49ac1e7d5a96dbbdd98efb1f05 /src | |
| parent | 0c2660c849293d23296f758c4a50f6e40432cf2e (diff) | |
| download | emacs-8acb7dad7a13f83bec14cb2c6cbe729ece5271ef.tar.gz emacs-8acb7dad7a13f83bec14cb2c6cbe729ece5271ef.zip | |
(Fcall_process): Reject encoding arguments by
ascii-incompatible coding systems (e.g. utf-16).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/callproc.c | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index dd8feb509b1..3c527e22dd8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2006-05-18 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * callproc.c (Fcall_process): Reject encoding arguments by | ||
| 4 | ascii-incompatible coding systems (e.g. utf-16). | ||
| 5 | |||
| 6 | * coding.c (Qascii_incompatible): New variable. | ||
| 7 | (syms_of_coding): Setup Qascii_incompatible. | ||
| 8 | (setup_coding_system): Be sure to initialize coding->common_flags. | ||
| 9 | Check `ascii-incompatible' property of the coding system. | ||
| 10 | |||
| 11 | * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro. | ||
| 12 | |||
| 1 | 2006-05-18 Kim F. Storm <storm@cua.dk> | 13 | 2006-05-18 Kim F. Storm <storm@cua.dk> |
| 2 | 14 | ||
| 3 | * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when | 15 | * xdisp.c (display_tool_bar_line): Restore entire tool-bar geometry when |
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 | } |