diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) | |||
| 4459 | coding->produced_char = coding->produced; | 4459 | coding->produced_char = coding->produced; |
| 4460 | coding->spec.ccl.cr_carryover = ccl->cr_consumed; | 4460 | coding->spec.ccl.cr_carryover = ccl->cr_consumed; |
| 4461 | } | 4461 | } |
| 4462 | else if (!ccl->eight_bit_control) | ||
| 4463 | { | ||
| 4464 | /* The produced bytes forms a valid multibyte sequence. */ | ||
| 4465 | coding->produced_char | ||
| 4466 | = multibyte_chars_in_text (destination, coding->produced); | ||
| 4467 | coding->spec.ccl.eight_bit_carryover[0] = 0; | ||
| 4468 | } | ||
| 4462 | else | 4469 | else |
| 4463 | { | 4470 | { |
| 4464 | /* On decoding, the destination should always multibyte. But, | 4471 | /* On decoding, the destination should always multibyte. But, |