diff options
| author | Kenichi Handa | 1998-09-07 13:39:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-09-07 13:39:15 +0000 |
| commit | 69f7652519aa088fab50f747a3eb30644e8f6760 (patch) | |
| tree | b5880e22bf41d6a200b81b71e52a8b47c6b09cf6 /src/coding.c | |
| parent | a6611c0d5674142e14069005c95d7ed9c638e4ec (diff) | |
| download | emacs-69f7652519aa088fab50f747a3eb30644e8f6760.tar.gz emacs-69f7652519aa088fab50f747a3eb30644e8f6760.zip | |
(ccl_coding_driver): Always calculate correct mulibyte
chars in produced byte sequence.
(Ffind_operation_coding_system): Doc-string fixed.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 19 |
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", | |||
| 4988 | DEFUN ("find-operation-coding-system", Ffind_operation_coding_system, | 4981 | DEFUN ("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\ |
| 4991 | The value names a pair of coding systems: (DECODING-SYSTEM ENCODING-SYSTEM).\n\ | 4984 | The value names a pair of coding systems: (DECODING-SYSTEM . ENCODING-SYSTEM).\n\ |
| 4992 | DECODING-SYSTEM is the coding system to use for decoding\n\ | 4985 | DECODING-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\ |
| 4994 | for encoding (in case OPERATION does encoding).\n\ | 4987 | for encoding (in case OPERATION does encoding).\n\ |