]> git.eshelyaron.com Git - emacs.git/commitdiff
(code_convert_region): Be sure to initialize coding->category_idx.
authorKenichi Handa <handa@m17n.org>
Fri, 13 Oct 2000 08:01:24 +0000 (08:01 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 13 Oct 2000 08:01:24 +0000 (08:01 +0000)
src/coding.c

index fa079a749cb04ac93af6d0d31a2f510b3846792b..6d2e6d9c4546b538c7eb5e96c414d9f9dfb251c2 100644 (file)
@@ -4800,11 +4800,14 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
        {
          detect_coding (coding, BYTE_POS_ADDR (from_byte), len_byte);
          if (coding->type == coding_type_undecided)
-           /* It seems that the text contains only ASCII, but we
-              should not left it undecided because the deeper
-              decoding routine (decode_coding) tries to detect the
-              encodings again in vain.  */
-           coding->type = coding_type_emacs_mule;
+           {
+             /* It seems that the text contains only ASCII, but we
+                should not left it undecided because the deeper
+                decoding routine (decode_coding) tries to detect the
+                encodings again in vain.  */
+             coding->type = coding_type_emacs_mule;
+             coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE;
+           }
        }
       if (coding->eol_type == CODING_EOL_UNDECIDED
          && coding->type != coding_type_ccl)