diff options
| author | Kenichi Handa | 1998-04-14 01:06:44 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-04-14 01:06:44 +0000 |
| commit | f30cc6122e343fe6a9afbda2e2230da87fc7c5a0 (patch) | |
| tree | c542fc5d5cb13a103c502017ffb0e9de86709f2a | |
| parent | 06bd27fdf5fa529e58ce129e3d906d17b5dcda34 (diff) | |
| download | emacs-f30cc6122e343fe6a9afbda2e2230da87fc7c5a0.tar.gz emacs-f30cc6122e343fe6a9afbda2e2230da87fc7c5a0.zip | |
(code_convert_string): Give decode_coding correct byte
length of source text.
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 0152b327295..e94cee5e2de 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -4388,7 +4388,7 @@ code_convert_string (str, coding, encodep, nocopy) | |||
| 4388 | ? encode_coding (coding, XSTRING (str)->data + from, | 4388 | ? encode_coding (coding, XSTRING (str)->data + from, |
| 4389 | buf + from, to_byte - from, len) | 4389 | buf + from, to_byte - from, len) |
| 4390 | : decode_coding (coding, XSTRING (str)->data + from, | 4390 | : decode_coding (coding, XSTRING (str)->data + from, |
| 4391 | buf + from, to - from, len)); | 4391 | buf + from, to_byte - from, len)); |
| 4392 | if (! encodep && result == CODING_FINISH_INCONSISTENT_EOL) | 4392 | if (! encodep && result == CODING_FINISH_INCONSISTENT_EOL) |
| 4393 | { | 4393 | { |
| 4394 | /* We simple try to decode the whole string again but without | 4394 | /* We simple try to decode the whole string again but without |