diff options
| author | Kenichi Handa | 2002-06-24 00:35:37 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-06-24 00:35:37 +0000 |
| commit | 950a45d052141dc8fc9286e3039508f3aaafd949 (patch) | |
| tree | 81945c891d985d85bbbc9d99cb750fd351b4e52f /src | |
| parent | f2aa473a2cf664b9f2bebd902c123d1686b17769 (diff) | |
| download | emacs-950a45d052141dc8fc9286e3039508f3aaafd949.tar.gz emacs-950a45d052141dc8fc9286e3039508f3aaafd949.zip | |
(Fcall_process): If code detection is necessary, call detect_coding
directly here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c index 1a3ff6fcca9..ddc134658ca 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -787,6 +787,12 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */) | |||
| 787 | size = decoding_buffer_size (&process_coding, nread); | 787 | size = decoding_buffer_size (&process_coding, nread); |
| 788 | decoding_buf = (char *) xmalloc (size); | 788 | decoding_buf = (char *) xmalloc (size); |
| 789 | 789 | ||
| 790 | if (CODING_REQUIRE_DETECTION (&process_coding)) | ||
| 791 | { | ||
| 792 | detect_coding (&process_coding, bufptr, nread); | ||
| 793 | if (process_coding.composing != COMPOSITION_DISABLED) | ||
| 794 | coding_allocate_composition_data (&process_coding, PT); | ||
| 795 | } | ||
| 790 | if (process_coding.cmp_data) | 796 | if (process_coding.cmp_data) |
| 791 | process_coding.cmp_data->char_offset = PT; | 797 | process_coding.cmp_data->char_offset = PT; |
| 792 | 798 | ||