diff options
author | Kenichi Handa <handa@m17n.org> | 2000-12-15 08:30:40 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2000-12-15 08:30:40 +0000 |
commit | 64c1e55fbe411abb6186fe6d973bf8cd789fb3a1 (patch) | |
tree | 8c5771cdbcda325efdb455169cd714901d94d0da /src/coding.c | |
parent | bc13730549dae00470341b4b77a95ea0eb968b5d (diff) | |
download | emacs-64c1e55fbe411abb6186fe6d973bf8cd789fb3a1.tar.gz |
(detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
argument.
(code_convert_region): Don't override coding->src_multibyte and
coding->dst_multibyte.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/coding.c b/src/coding.c index 41e4eb1a8e1..18958564e52 100644 --- a/src/coding.c +++ b/src/coding.c @@ -3690,7 +3690,8 @@ detect_coding (coding, src, src_bytes) Lisp_Object val; val = Vcoding_category_list; - mask = detect_coding_mask (src, src_bytes, coding_priorities, &skip, 0); + mask = detect_coding_mask (src, src_bytes, coding_priorities, &skip, + coding->src_multibyte); coding->heading_ascii = skip; if (!mask) return; @@ -4832,9 +4833,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) int prev_Z; int multibyte_p = !NILP (current_buffer->enable_multibyte_characters); - coding->src_multibyte = replace && multibyte_p; - coding->dst_multibyte = multibyte_p; - deletion = Qnil; saved_coding_symbol = Qnil; |