# HG changeset patch # User Andrew Innes # Date 900275063 0 # Node ID ef9607e709bc415bea079b8cdc4507bcc9edeb38 # Parent 79ca732d9740d7d16cf05803470a241b5c43f071 (Fw32_set_clipboard_data): Set Vlast_coding_system_used. (Fw32_get_clipboard_data): Likewise. diff -r 79ca732d9740 -r ef9607e709bc src/w32select.c --- 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);