comparison src/w16select.c @ 45982:864289635b41

(Fw16_get_clipboard_data): Disable composition handling.
author Kenichi Handa <handa@m17n.org>
date Mon, 24 Jun 2002 00:36:20 +0000
parents 5d4cefa40da1
children 37913830a881
comparison
equal deleted inserted replaced
45981:e513f55424f6 45982:864289635b41
655 (Fcheck_coding_system (Vnext_selection_coding_system), &coding); 655 (Fcheck_coding_system (Vnext_selection_coding_system), &coding);
656 coding.src_multibyte = 0; 656 coding.src_multibyte = 0;
657 coding.dst_multibyte = 1; 657 coding.dst_multibyte = 1;
658 Vnext_selection_coding_system = Qnil; 658 Vnext_selection_coding_system = Qnil;
659 coding.mode |= CODING_MODE_LAST_BLOCK; 659 coding.mode |= CODING_MODE_LAST_BLOCK;
660 /* We explicitely disable composition handling because selection
661 data should not contain any composition sequence. */
662 coding.composing = COMPOSITION_DISABLED;
660 truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 1); 663 truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 1);
661 bufsize = decoding_buffer_size (&coding, truelen); 664 bufsize = decoding_buffer_size (&coding, truelen);
662 buf = (unsigned char *) xmalloc (bufsize); 665 buf = (unsigned char *) xmalloc (bufsize);
663 decode_coding (&coding, htext, buf, truelen, bufsize); 666 decode_coding (&coding, htext, buf, truelen, bufsize);
664 ret = make_string_from_bytes ((char *) buf, 667 ret = make_string_from_bytes ((char *) buf,