summaryrefslogtreecommitdiff
path: root/src/w32select.c
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>1998-07-12 20:24:23 +0000
committerAndrew Innes <andrewi@gnu.org>1998-07-12 20:24:23 +0000
commit0108f679e4334ee197cb0605cf0ad0fe23bd9c04 (patch)
tree920e0e0300eaef51267f055f51a17619e13b9f95 /src/w32select.c
parent0469366f994d3c03006c30262408379e416a03d4 (diff)
downloademacs-0108f679e4334ee197cb0605cf0ad0fe23bd9c04.tar.gz
(Fw32_set_clipboard_data): Set Vlast_coding_system_used.
(Fw32_get_clipboard_data): Likewise.
Diffstat (limited to 'src/w32select.c')
-rw-r--r--src/w32select.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/w32select.c b/src/w32select.c
index 883a6292183..7248559c38f 100644
--- a/src/w32select.c
+++ b/src/w32select.c
@@ -168,6 +168,8 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, Sw32_set_clipboard_dat
}
GlobalUnlock (htext);
+
+ Vlast_coding_system_used = Qraw_text;
}
else
{
@@ -188,6 +190,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, Sw32_set_clipboard_dat
if ((dst = (unsigned char *) GlobalLock (htext)) == NULL)
goto error;
encode_coding (&coding, src, dst, nbytes, bufsize);
+ Vlast_coding_system_used = coding.symbol;
GlobalUnlock (htext);
/* Shrink data block to actual size. */
htext2 = GlobalReAlloc (htext, coding.produced, GMEM_MOVEABLE | GMEM_DDESHARE);
@@ -257,6 +260,7 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, Sw32_get_clipboard_dat
bufsize = decoding_buffer_size (&coding, nbytes);
buf = (unsigned char *) xmalloc (bufsize);
decode_coding (&coding, src, buf, nbytes, bufsize);
+ Vlast_coding_system_used = coding.symbol;
truelen = (coding.fake_multibyte
? multibyte_chars_in_text (buf, coding.produced)
: coding.produced_char);
@@ -301,6 +305,8 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, Sw32_get_clipboard_dat
/* copied remaining partial line -> now finished */
break;
}
+
+ Vlast_coding_system_used = Qraw_text;
}
GlobalUnlock (htext);