# HG changeset patch # User Kenichi Handa # Date 905175555 0 # Node ID 392b44751a22839a49777dd508baa406f0bf3b79 # Parent 4750ba95a176efd79e8ce82174bedf600a497748 (ccl_coding_driver): Always calculate correct mulibyte chars in produced byte sequence. (Ffind_operation_coding_system): Doc-string fixed. diff -r 4750ba95a176 -r 392b44751a22 src/coding.c --- a/src/coding.c Mon Sep 07 07:28:16 1998 +0000 +++ b/src/coding.c Mon Sep 07 13:39:15 1998 +0000 @@ -3612,18 +3612,11 @@ coding->produced = ccl_driver (ccl, source, destination, src_bytes, dst_bytes, &(coding->consumed)); - if (encodep) - { - coding->produced_char = coding->produced; - coding->consumed_char - = multibyte_chars_in_text (source, coding->consumed); - } - else - { - coding->produced_char - = multibyte_chars_in_text (destination, coding->produced); - coding->consumed_char = coding->consumed; - } + coding->produced_char + = multibyte_chars_in_text (destination, coding->produced); + coding->consumed_char + = multibyte_chars_in_text (source, coding->consumed); + switch (ccl->status) { case CCL_STAT_SUSPEND_BY_SRC: @@ -4988,7 +4981,7 @@ DEFUN ("find-operation-coding-system", Ffind_operation_coding_system, Sfind_operation_coding_system, 1, MANY, 0, "Choose a coding system for an operation based on the target name.\n\ -The value names a pair of coding systems: (DECODING-SYSTEM ENCODING-SYSTEM).\n\ +The value names a pair of coding systems: (DECODING-SYSTEM . ENCODING-SYSTEM).\n\ DECODING-SYSTEM is the coding system to use for decoding\n\ \(in case OPERATION does decoding), and ENCODING-SYSTEM is the coding system\n\ for encoding (in case OPERATION does encoding).\n\