(ccl_coding_driver): On encoding, coding->produced_char
should be set to coding->produced.
This commit is contained in:
parent
3c092276c7
commit
489427668f
1 changed files with 3 additions and 1 deletions
|
@ -3664,7 +3664,9 @@ ccl_coding_driver (coding, source, destination, src_bytes, dst_bytes, encodep)
|
|||
coding->produced = ccl_driver (ccl, source, destination,
|
||||
src_bytes, dst_bytes, &(coding->consumed));
|
||||
coding->produced_char
|
||||
= multibyte_chars_in_text (destination, coding->produced);
|
||||
= (encodep
|
||||
? coding->produced
|
||||
: multibyte_chars_in_text (destination, coding->produced));
|
||||
coding->consumed_char
|
||||
= multibyte_chars_in_text (source, coding->consumed);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue