From: Kenichi Handa Date: Tue, 9 Jul 2002 00:01:09 +0000 (+0000) Subject: (Fw32_get_clipboard_data): Disable composition handling. X-Git-Tag: emacs-pretest-21.2.91~183 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d6e582b9708d75f43df764b706099bc3cb54ccc6;p=emacs.git (Fw32_get_clipboard_data): Disable composition handling. --- diff --git a/src/w32select.c b/src/w32select.c index 520610ee961..a1164c07f2e 100644 --- a/src/w32select.c +++ b/src/w32select.c @@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */ #include "buffer.h" #include "charset.h" #include "coding.h" +#include "composite.h" Lisp_Object QCLIPBOARD; @@ -325,6 +326,10 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, Sw32_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; bufsize = decoding_buffer_size (&coding, nbytes); buf = (unsigned char *) xmalloc (bufsize); decode_coding (&coding, src, buf, nbytes, bufsize);