From ade8d05effec5591596588bd9e33b507e9aafba0 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 27 Feb 2001 03:27:20 +0000 Subject: [PATCH] (ccl_coding_driver): If ccl->eight_bit_control is zero, treat the produced bytes as a valid multibyte sequence. --- src/coding.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/coding.c b/src/coding.c index 23ec2cb58b8..f16fa375d0f 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4459,6 +4459,13 @@ ccl_coding_driver (coding, source, destination, src_bytes, dst_bytes, encodep) 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, -- 2.39.5