/[emacs]/emacs/src/w16select.c
ViewVC logotype

Diff of /emacs/src/w16select.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by lektu, Mon Jun 24 07:55:57 2002 UTC revision 1.30 by raeburn, Mon Jul 15 00:00:37 2002 UTC
# Line 501  DEFUN ("w16-set-clipboard-data", Fw16_se Line 501  DEFUN ("w16-set-clipboard-data", Fw16_se
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)
# Line 531  DEFUN ("w16-set-clipboard-data", Fw16_se Line 531  DEFUN ("w16-set-clipboard-data", Fw16_se
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;

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26