Fix "C-x RET r" when the new encoding is UTF
* src/fileio.c (Finsert_file_contents): Update point of 'conversion_buffer' before decoding the last block. (Bug#64253)
This commit is contained in:
parent
679e9d7c56
commit
fa06249a9f
1 changed files with 2 additions and 0 deletions
|
@ -4463,6 +4463,8 @@ by calling `format-decode', which see. */)
|
||||||
|
|
||||||
if (unprocessed > 0)
|
if (unprocessed > 0)
|
||||||
{
|
{
|
||||||
|
BUF_TEMP_SET_PT (XBUFFER (conversion_buffer),
|
||||||
|
BUF_Z (XBUFFER (conversion_buffer)));
|
||||||
coding.mode |= CODING_MODE_LAST_BLOCK;
|
coding.mode |= CODING_MODE_LAST_BLOCK;
|
||||||
decode_coding_c_string (&coding, (unsigned char *) read_buf,
|
decode_coding_c_string (&coding, (unsigned char *) read_buf,
|
||||||
unprocessed, conversion_buffer);
|
unprocessed, conversion_buffer);
|
||||||
|
|
Loading…
Add table
Reference in a new issue