Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 24277:b6fcff552040 | 24278:769617c7c4fd |
|---|---|
| 3662 ccl->last_block = coding->mode & CODING_MODE_LAST_BLOCK; | 3662 ccl->last_block = coding->mode & CODING_MODE_LAST_BLOCK; |
| 3663 | 3663 |
| 3664 coding->produced = ccl_driver (ccl, source, destination, | 3664 coding->produced = ccl_driver (ccl, source, destination, |
| 3665 src_bytes, dst_bytes, &(coding->consumed)); | 3665 src_bytes, dst_bytes, &(coding->consumed)); |
| 3666 coding->produced_char | 3666 coding->produced_char |
| 3667 = multibyte_chars_in_text (destination, coding->produced); | 3667 = (encodep |
| 3668 ? coding->produced | |
| 3669 : multibyte_chars_in_text (destination, coding->produced)); | |
| 3668 coding->consumed_char | 3670 coding->consumed_char |
| 3669 = multibyte_chars_in_text (source, coding->consumed); | 3671 = multibyte_chars_in_text (source, coding->consumed); |
| 3670 | 3672 |
| 3671 switch (ccl->status) | 3673 switch (ccl->status) |
| 3672 { | 3674 { |
