changeset 24278:769617c7c4fd

(ccl_coding_driver): On encoding, coding->produced_char should be set to coding->produced.
author Kenichi Handa <handa@m17n.org>
date Mon, 08 Feb 1999 11:06:56 +0000
parents b6fcff552040
children 7334c513dc7d
files src/coding.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);