From 714d6a27efd6a998336e3262c0317434f5e216d5 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 9 Jul 2002 00:02:36 +0000 Subject: [PATCH] (Fcall_process): If code detection is necessary, call detect_coding directly here. --- src/callproc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/callproc.c b/src/callproc.c index 1f40ca59fc6..51ee5daf595 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -786,6 +786,12 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") size = decoding_buffer_size (&process_coding, nread); decoding_buf = (char *) xmalloc (size); + if (process_coding.type == coding_type_undecided) + { + detect_coding (&process_coding, bufptr, nread); + if (process_coding.composing != COMPOSITION_DISABLED) + coding_allocate_composition_data (&process_coding, PT); + } if (process_coding.cmp_data) process_coding.cmp_data->char_offset = PT; -- 2.39.5