comparison src/coding.c @ 51327:389d833cd25e

(ccl_coding_driver): Set ccl->eight_bit_control property before calling ccl_driver.
author Kenichi Handa <handa@m17n.org>
date Fri, 30 May 2003 07:57:48 +0000
parents e723bcb43569
children 8da3b8a0ca4f
comparison
equal deleted inserted replaced
51326:92b845a3d3a6 51327:389d833cd25e
4562 that, setup proper information in the structure CCL. */ 4562 that, setup proper information in the structure CCL. */
4563 ccl->eol_type = coding->eol_type; 4563 ccl->eol_type = coding->eol_type;
4564 if (ccl->eol_type ==CODING_EOL_UNDECIDED) 4564 if (ccl->eol_type ==CODING_EOL_UNDECIDED)
4565 ccl->eol_type = CODING_EOL_LF; 4565 ccl->eol_type = CODING_EOL_LF;
4566 ccl->cr_consumed = coding->spec.ccl.cr_carryover; 4566 ccl->cr_consumed = coding->spec.ccl.cr_carryover;
4567 } 4567 ccl->eight_bit_control = coding->dst_multibyte;
4568 }
4569 else
4570 ccl->eight_bit_control = 1;
4568 ccl->multibyte = coding->src_multibyte; 4571 ccl->multibyte = coding->src_multibyte;
4569 if (coding->spec.ccl.eight_bit_carryover[0] != 0) 4572 if (coding->spec.ccl.eight_bit_carryover[0] != 0)
4570 { 4573 {
4571 /* Move carryover bytes to DESTINATION. */ 4574 /* Move carryover bytes to DESTINATION. */
4572 unsigned char *p = coding->spec.ccl.eight_bit_carryover; 4575 unsigned char *p = coding->spec.ccl.eight_bit_carryover;