1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 12:40:56 -08:00

(ccl_coding_driver): If ccl->eight_bit_control is zero,

treat the produced bytes as a valid multibyte sequence.
This commit is contained in:
Kenichi Handa 2001-02-27 03:27:20 +00:00
parent 063af45778
commit ade8d05eff

View file

@ -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,