# HG changeset patch # User Kenichi Handa # Date 918472016 0 # Node ID 769617c7c4fde69cc9f4d11268f506b2508d11df # Parent b6fcff552040016bcdfdc07ca0ab1caa9c60793b (ccl_coding_driver): On encoding, coding->produced_char should be set to coding->produced. diff -r b6fcff552040 -r 769617c7c4fd src/coding.c --- a/src/coding.c Mon Feb 08 09:52:43 1999 +0000 +++ b/src/coding.c Mon Feb 08 11:06:56 1999 +0000 @@ -3664,7 +3664,9 @@ 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);