(code_convert_string): Give decode_coding correct byte
length of source text.
This commit is contained in:
parent
06bd27fdf5
commit
f30cc6122e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue