[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 fa06249a9fb: Fix "C-x RET r" when the new encoding is UTF
From: |
Eli Zaretskii |
Subject: |
emacs-29 fa06249a9fb: Fix "C-x RET r" when the new encoding is UTF |
Date: |
Sat, 24 Jun 2023 04:49:47 -0400 (EDT) |
branch: emacs-29
commit fa06249a9fbb0b0b67eb0d88cdb70b61723e67ed
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
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)
---
src/fileio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/fileio.c b/src/fileio.c
index b50b3c6b935..995e4142f58 100644
--- 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 fa06249a9fb: Fix "C-x RET r" when the new encoding is UTF,
Eli Zaretskii <=