]> git.eshelyaron.com Git - emacs.git/commitdiff
(ccl_coding_driver): If ccl->eight_bit_control is zero,
authorKenichi Handa <handa@m17n.org>
Tue, 27 Feb 2001 03:27:20 +0000 (03:27 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 27 Feb 2001 03:27:20 +0000 (03:27 +0000)
treat the produced bytes as a valid multibyte sequence.

src/coding.c

index 23ec2cb58b8137a1dc7785ae7a6377f19851b1ff..f16fa375d0f3ed4244a8fdafcf990c77f17efd19 100644 (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,