From 1343a45954410250d26734e0af59594d6073160d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 9 Jul 2002 00:01:55 +0000 Subject: [PATCH] (Fw16_get_clipboard_data): Disable composition handling. --- src/w16select.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/w16select.c b/src/w16select.c index df739a1356c..afe5f4944f6 100644 --- a/src/w16select.c +++ b/src/w16select.c @@ -40,6 +40,7 @@ Boston, MA 02111-1307, USA. */ #include "buffer.h" #include "charset.h" #include "coding.h" +#include "composite.h" /* If ever some function outside this file will need to call any clipboard-related function, the following prototypes and constants @@ -660,6 +661,9 @@ DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_dat coding.dst_multibyte = 1; Vnext_selection_coding_system = Qnil; coding.mode |= CODING_MODE_LAST_BLOCK; + /* We explicitely disable composition handling because selection + data should not contain any composition sequence. */ + coding.composing = COMPOSITION_DISABLED; truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 1); bufsize = decoding_buffer_size (&coding, truelen); buf = (unsigned char *) xmalloc (bufsize); -- 2.39.5