501 |
|
|
502 |
BLOCK_INPUT; |
BLOCK_INPUT; |
503 |
|
|
504 |
nbytes = STRING_BYTES (XSTRING (string)); |
nbytes = SBYTES (string); |
505 |
src = XSTRING (string)->data; |
src = SDATA (string); |
506 |
|
|
507 |
/* Since we are now handling multilingual text, we must consider |
/* Since we are now handling multilingual text, we must consider |
508 |
encoding text for the clipboard. */ |
encoding text for the clipboard. */ |
509 |
charset_info = find_charset_in_text (src, XSTRING (string)->size, nbytes, |
charset_info = find_charset_in_text (src, SCHARS (string), nbytes, |
510 |
NULL, Qnil); |
NULL, Qnil); |
511 |
|
|
512 |
if (charset_info == 0) |
if (charset_info == 0) |
531 |
&& !NILP (Ffboundp (coding.pre_write_conversion))) |
&& !NILP (Ffboundp (coding.pre_write_conversion))) |
532 |
{ |
{ |
533 |
string = run_pre_post_conversion_on_str (string, &coding, 1); |
string = run_pre_post_conversion_on_str (string, &coding, 1); |
534 |
src = XSTRING (string)->data; |
src = SDATA (string); |
535 |
nbytes = STRING_BYTES (XSTRING (string)); |
nbytes = SBYTES (string); |
536 |
} |
} |
537 |
coding.src_multibyte = 1; |
coding.src_multibyte = 1; |
538 |
coding.dst_multibyte = 0; |
coding.dst_multibyte = 0; |