mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-24 19:03:29 +00:00
(code_convert_string): Give decode_coding correct byte
length of source text.
This commit is contained in:
parent
06bd27fdf5
commit
f30cc6122e
@ -4388,7 +4388,7 @@ code_convert_string (str, coding, encodep, nocopy)
|
||||
? encode_coding (coding, XSTRING (str)->data + from,
|
||||
buf + from, to_byte - from, len)
|
||||
: decode_coding (coding, XSTRING (str)->data + from,
|
||||
buf + from, to - from, len));
|
||||
buf + from, to_byte - from, len));
|
||||
if (! encodep && result == CODING_FINISH_INCONSISTENT_EOL)
|
||||
{
|
||||
/* We simple try to decode the whole string again but without
|
||||
|
Loading…
Reference in New Issue
Block a user