diff options
| author | Eli Zaretskii | 2023-06-24 11:49:14 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-06-24 11:49:14 +0300 |
| commit | fa06249a9fbb0b0b67eb0d88cdb70b61723e67ed (patch) | |
| tree | cd3936fa2cbe80529d6b7a0692e3dc4b5b8e7112 /src | |
| parent | 679e9d7c56e2296e3a218290d941e28002bf7722 (diff) | |
| download | emacs-fa06249a9fbb0b0b67eb0d88cdb70b61723e67ed.tar.gz emacs-fa06249a9fbb0b0b67eb0d88cdb70b61723e67ed.zip | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. */) | |||
| 4463 | 4463 | ||
| 4464 | if (unprocessed > 0) | 4464 | if (unprocessed > 0) |
| 4465 | { | 4465 | { |
| 4466 | BUF_TEMP_SET_PT (XBUFFER (conversion_buffer), | ||
| 4467 | BUF_Z (XBUFFER (conversion_buffer))); | ||
| 4466 | coding.mode |= CODING_MODE_LAST_BLOCK; | 4468 | coding.mode |= CODING_MODE_LAST_BLOCK; |
| 4467 | decode_coding_c_string (&coding, (unsigned char *) read_buf, | 4469 | decode_coding_c_string (&coding, (unsigned char *) read_buf, |
| 4468 | unprocessed, conversion_buffer); | 4470 | unprocessed, conversion_buffer); |