]> code.delx.au - gnu-emacs/commitdiff
(ccl_coding_driver): On encoding, coding->produced_char
authorKenichi Handa <handa@m17n.org>
Mon, 8 Feb 1999 11:06:56 +0000 (11:06 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 8 Feb 1999 11:06:56 +0000 (11:06 +0000)
should be set to coding->produced.

src/coding.c

index 298b3707686fdc1b2f574060d7667d908cc17ab6..2a2ad2136aa16a2675e063691b2de6d27710f673 100644 (file)
@@ -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);