changeset 45980:1f38d08f324b

(Fcall_process): If code detection is necessary, call detect_coding directly here.
author Kenichi Handa <handa@m17n.org>
date Mon, 24 Jun 2002 00:35:37 +0000
parents 87962bf716e3
children e513f55424f6
files src/callproc.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Sun Jun 23 22:15:43 2002 +0000
+++ b/src/callproc.c	Mon Jun 24 00:35:37 2002 +0000
@@ -787,6 +787,12 @@
 		size = decoding_buffer_size (&process_coding, nread);
 		decoding_buf = (char *) xmalloc (size);
 		
+		if (CODING_REQUIRE_DETECTION (&process_coding))
+		  {
+		    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;