}
GlobalUnlock (htext);
+
+ Vlast_coding_system_used = Qraw_text;
}
else
{
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);
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);
/* copied remaining partial line -> now finished */
break;
}
+
+ Vlast_coding_system_used = Qraw_text;
}
GlobalUnlock (htext);