From 489427668fc75cd4df6ef69b1caafab5ef69aa7b Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 8 Feb 1999 11:06:56 +0000 Subject: [PATCH] (ccl_coding_driver): On encoding, coding->produced_char should be set to coding->produced. --- src/coding.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coding.c b/src/coding.c index 298b3707686..2a2ad2136aa 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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); -- 2.39.2