Mercurial > emacs
diff src/coding.c @ 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 | 1c515a6c0686 |
| children | 4efecaf73aac |
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);
