changeset 34593:f727eb496b4e

(detect_coding): Call detect_coding_mask with a correct MULTIBYTEP argument. (code_convert_region): Don't override coding->src_multibyte and coding->dst_multibyte.
author Kenichi Handa <handa@m17n.org>
date Fri, 15 Dec 2000 08:30:40 +0000
parents 726f3f38d889
children 9b989029cccf
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Fri Dec 15 08:30:10 2000 +0000
+++ b/src/coding.c	Fri Dec 15 08:30:40 2000 +0000
@@ -3690,7 +3690,8 @@
   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 @@
   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;