# HG changeset patch # User Kenichi Handa # Date 983244440 0 # Node ID 27b5c760df319fc5a29d3cdaf303a9e155254bd4 # Parent 3b0a3796513a7e2a0509d68f46a3038517d90fd6 (ccl_coding_driver): If ccl->eight_bit_control is zero, treat the produced bytes as a valid multibyte sequence. diff -r 3b0a3796513a -r 27b5c760df31 src/coding.c --- 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,