]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fw16_get_clipboard_data): Disable composition handling.
authorKenichi Handa <handa@m17n.org>
Tue, 9 Jul 2002 00:01:55 +0000 (00:01 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 9 Jul 2002 00:01:55 +0000 (00:01 +0000)
src/w16select.c

index df739a1356c919a53402d6edbff2f40531d488a0..afe5f4944f6706127ae2886ce2d0c961fe4e2f09 100644 (file)
@@ -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);