Mercurial > emacs
changeset 36410:27b5c760df31
(ccl_coding_driver): If ccl->eight_bit_control is zero,
treat the produced bytes as a valid multibyte sequence.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 27 Feb 2001 03:27:20 +0000 |
parents | 3b0a3796513a |
children | 120891909abe |
files | src/coding.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Tue Feb 27 03:27:00 2001 +0000 +++ b/src/coding.c Tue Feb 27 03:27:20 2001 +0000 @@ -4459,6 +4459,13 @@ coding->produced_char = coding->produced; coding->spec.ccl.cr_carryover = ccl->cr_consumed; } + else if (!ccl->eight_bit_control) + { + /* The produced bytes forms a valid multibyte sequence. */ + coding->produced_char + = multibyte_chars_in_text (destination, coding->produced); + coding->spec.ccl.eight_bit_carryover[0] = 0; + } else { /* On decoding, the destination should always multibyte. But,