diff options
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 | ||