comparison src/w16select.c @ 23875:4b12480a9cd7

(Fw16_set_clipboard_data): Call find_charset_in_str with MULTIBYTE arg 0.
author Kenichi Handa <handa@m17n.org>
date Tue, 15 Dec 1998 04:35:38 +0000
parents 4817632d3428
children 5048f069091e
comparison
equal deleted inserted replaced
23874:122a362c5024 23875:4b12480a9cd7
447 bzero (charsets, (MAX_CHARSET + 1) * sizeof (int)); 447 bzero (charsets, (MAX_CHARSET + 1) * sizeof (int));
448 num = ((nbytes <= 1 /* Check the possibility of short cut. */ 448 num = ((nbytes <= 1 /* Check the possibility of short cut. */
449 || !STRING_MULTIBYTE (string) 449 || !STRING_MULTIBYTE (string)
450 || nbytes == XSTRING (string)->size) 450 || nbytes == XSTRING (string)->size)
451 ? 0 451 ? 0
452 : find_charset_in_str (src, nbytes, charsets, Qnil, 0)); 452 : find_charset_in_str (src, nbytes, charsets, Qnil, 0, 1));
453 453
454 if (!num || (num == 1 && charsets[CHARSET_ASCII])) 454 if (!num || (num == 1 && charsets[CHARSET_ASCII]))
455 { 455 {
456 /* No multibyte character in OBJ. We need not encode it, but we 456 /* No multibyte character in OBJ. We need not encode it, but we
457 will have to convert it to DOS CR-LF style. */ 457 will have to convert it to DOS CR-LF style. */