Mercurial > emacs
changeset 22745:ef9607e709bc
(Fw32_set_clipboard_data): Set Vlast_coding_system_used.
(Fw32_get_clipboard_data): Likewise.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Sun, 12 Jul 1998 20:24:23 +0000 |
parents | 79ca732d9740 |
children | 516b9dfa5d34 |
files | src/w32select.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32select.c Sun Jul 12 19:13:45 1998 +0000 +++ b/src/w32select.c Sun Jul 12 20:24:23 1998 +0000 @@ -168,6 +168,8 @@ } GlobalUnlock (htext); + + Vlast_coding_system_used = Qraw_text; } else { @@ -188,6 +190,7 @@ 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 @@ 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 @@ /* copied remaining partial line -> now finished */ break; } + + Vlast_coding_system_used = Qraw_text; } GlobalUnlock (htext);