aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
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)
3690 Lisp_Object val; 3690 Lisp_Object val;
3691 3691
3692 val = Vcoding_category_list; 3692 val = Vcoding_category_list;
3693 mask = detect_coding_mask (src, src_bytes, coding_priorities, &skip, 0); 3693 mask = detect_coding_mask (src, src_bytes, coding_priorities, &skip,
3694 coding->src_multibyte);
3694 coding->heading_ascii = skip; 3695 coding->heading_ascii = skip;
3695 3696
3696 if (!mask) return; 3697 if (!mask) return;
@@ -4832,9 +4833,6 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
4832 int prev_Z; 4833 int prev_Z;
4833 int multibyte_p = !NILP (current_buffer->enable_multibyte_characters); 4834 int multibyte_p = !NILP (current_buffer->enable_multibyte_characters);
4834 4835
4835 coding->src_multibyte = replace && multibyte_p;
4836 coding->dst_multibyte = multibyte_p;
4837
4838 deletion = Qnil; 4836 deletion = Qnil;
4839 saved_coding_symbol = Qnil; 4837 saved_coding_symbol = Qnil;
4840 4838