Mercurial > emacs
comparison src/w32select.c @ 23874:122a362c5024
(Fw32_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 | ad04307ef465 |
children | a0423d2b9302 |
comparison
equal
deleted
inserted
replaced
23873:f3304ac34d54 | 23874:122a362c5024 |
---|---|
122 bzero (charsets, (MAX_CHARSET + 1) * sizeof (int)); | 122 bzero (charsets, (MAX_CHARSET + 1) * sizeof (int)); |
123 num = ((nbytes <= 1 /* Check the possibility of short cut. */ | 123 num = ((nbytes <= 1 /* Check the possibility of short cut. */ |
124 || !STRING_MULTIBYTE (string) | 124 || !STRING_MULTIBYTE (string) |
125 || nbytes == XSTRING (string)->size) | 125 || nbytes == XSTRING (string)->size) |
126 ? 0 | 126 ? 0 |
127 : find_charset_in_str (src, nbytes, charsets, Qnil, 0)); | 127 : find_charset_in_str (src, nbytes, charsets, Qnil, 0, 1)); |
128 | 128 |
129 if (!num || (num == 1 && charsets[CHARSET_ASCII])) | 129 if (!num || (num == 1 && charsets[CHARSET_ASCII])) |
130 { | 130 { |
131 /* No multibyte character in OBJ. We need not encode it. */ | 131 /* No multibyte character in OBJ. We need not encode it. */ |
132 | 132 |