diff options
| author | Kenichi Handa | 2001-02-27 03:27:20 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-02-27 03:27:20 +0000 |
| commit | ade8d05effec5591596588bd9e33b507e9aafba0 (patch) | |
| tree | 83aa369ba5ed1a0d79a580c62473e60de9f36e02 /src/coding.c | |
| parent | 063af4577812338e470da481ff64b935a05e722e (diff) | |
| download | emacs-ade8d05effec5591596588bd9e33b507e9aafba0.tar.gz emacs-ade8d05effec5591596588bd9e33b507e9aafba0.zip | |
(ccl_coding_driver): If ccl->eight_bit_control is zero,
treat the produced bytes as a valid multibyte sequence.
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, |