From: Kenichi Handa Date: Mon, 8 Feb 1999 11:06:56 +0000 (+0000) Subject: (ccl_coding_driver): On encoding, coding->produced_char X-Git-Tag: emacs-20.4~671 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=489427668fc75cd4df6ef69b1caafab5ef69aa7b;p=emacs.git (ccl_coding_driver): On encoding, coding->produced_char should be set to coding->produced. --- 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);