30 |
#include "buffer.h" |
#include "buffer.h" |
31 |
#include "charset.h" |
#include "charset.h" |
32 |
#include "coding.h" |
#include "coding.h" |
33 |
|
#include "composite.h" |
34 |
|
|
35 |
Lisp_Object QCLIPBOARD; |
Lisp_Object QCLIPBOARD; |
36 |
|
|
326 |
coding.dst_multibyte = 1; |
coding.dst_multibyte = 1; |
327 |
Vnext_selection_coding_system = Qnil; |
Vnext_selection_coding_system = Qnil; |
328 |
coding.mode |= CODING_MODE_LAST_BLOCK; |
coding.mode |= CODING_MODE_LAST_BLOCK; |
329 |
|
/* We explicitely disable composition handling because |
330 |
|
selection data should not contain any composition |
331 |
|
sequence. */ |
332 |
|
coding.composing = COMPOSITION_DISABLED; |
333 |
bufsize = decoding_buffer_size (&coding, nbytes); |
bufsize = decoding_buffer_size (&coding, nbytes); |
334 |
buf = (unsigned char *) xmalloc (bufsize); |
buf = (unsigned char *) xmalloc (bufsize); |
335 |
decode_coding (&coding, src, buf, nbytes, bufsize); |
decode_coding (&coding, src, buf, nbytes, bufsize); |