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:
parent
063af45778
commit
ade8d05eff
1 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue