1
0
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:
Kenichi Handa 1998-04-14 01:06:44 +00:00
parent 06bd27fdf5
commit f30cc6122e

View File

@ -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