projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
679e9d7
)
Fix "C-x RET r" when the new encoding is UTF
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 24 Jun 2023 08:49:14 +0000
(11:49 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 24 Jun 2023 08:49:14 +0000
(11:49 +0300)
* src/fileio.c (Finsert_file_contents): Update point of
'conversion_buffer' before decoding the last block. (Bug#64253)
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index b50b3c6b935e7e9411307fb3df7f1ba63d28776b..995e4142f588363449c8406705d2140b2c9ad373 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-4463,6
+4463,8
@@
by calling `format-decode', which see. */)
if (unprocessed > 0)
{
+ BUF_TEMP_SET_PT (XBUFFER (conversion_buffer),
+ BUF_Z (XBUFFER (conversion_buffer)));
coding.mode |= CODING_MODE_LAST_BLOCK;
decode_coding_c_string (&coding, (unsigned char *) read_buf,
unprocessed, conversion_buffer);