aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/coding.c b/src/coding.c
index 3d702c4b6f5..80c0292e233 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -3612,18 +3612,11 @@ ccl_coding_driver (coding, source, destination, src_bytes, dst_bytes, encodep)
3612 3612
3613 coding->produced = ccl_driver (ccl, source, destination, 3613 coding->produced = ccl_driver (ccl, source, destination,
3614 src_bytes, dst_bytes, &(coding->consumed)); 3614 src_bytes, dst_bytes, &(coding->consumed));
3615 if (encodep) 3615 coding->produced_char
3616 { 3616 = multibyte_chars_in_text (destination, coding->produced);
3617 coding->produced_char = coding->produced; 3617 coding->consumed_char
3618 coding->consumed_char 3618 = multibyte_chars_in_text (source, coding->consumed);
3619 = multibyte_chars_in_text (source, coding->consumed); 3619
3620 }
3621 else
3622 {
3623 coding->produced_char
3624 = multibyte_chars_in_text (destination, coding->produced);
3625 coding->consumed_char = coding->consumed;
3626 }
3627 switch (ccl->status) 3620 switch (ccl->status)
3628 { 3621 {
3629 case CCL_STAT_SUSPEND_BY_SRC: 3622 case CCL_STAT_SUSPEND_BY_SRC:
@@ -4988,7 +4981,7 @@ DEFUN ("keyboard-coding-system",
4988DEFUN ("find-operation-coding-system", Ffind_operation_coding_system, 4981DEFUN ("find-operation-coding-system", Ffind_operation_coding_system,
4989 Sfind_operation_coding_system, 1, MANY, 0, 4982 Sfind_operation_coding_system, 1, MANY, 0,
4990 "Choose a coding system for an operation based on the target name.\n\ 4983 "Choose a coding system for an operation based on the target name.\n\
4991The value names a pair of coding systems: (DECODING-SYSTEM ENCODING-SYSTEM).\n\ 4984The value names a pair of coding systems: (DECODING-SYSTEM . ENCODING-SYSTEM).\n\
4992DECODING-SYSTEM is the coding system to use for decoding\n\ 4985DECODING-SYSTEM is the coding system to use for decoding\n\
4993\(in case OPERATION does decoding), and ENCODING-SYSTEM is the coding system\n\ 4986\(in case OPERATION does decoding), and ENCODING-SYSTEM is the coding system\n\
4994for encoding (in case OPERATION does encoding).\n\ 4987for encoding (in case OPERATION does encoding).\n\