aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2000-10-13 08:01:24 +0000
committerKenichi Handa2000-10-13 08:01:24 +0000
commit62b3ef1d94dab13f264dd1c5dbb6f67a5a235f36 (patch)
treef0f41ef8b9bc2af495ce1c492b195fbd1b5bc629 /src/coding.c
parentc744452b3190dc5a4d96d9fe7953a524c2d403b7 (diff)
downloademacs-62b3ef1d94dab13f264dd1c5dbb6f67a5a235f36.tar.gz
emacs-62b3ef1d94dab13f264dd1c5dbb6f67a5a235f36.zip
(code_convert_region): Be sure to initialize coding->category_idx.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/coding.c b/src/coding.c
index fa079a749cb..6d2e6d9c454 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4800,11 +4800,14 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
4800 { 4800 {
4801 detect_coding (coding, BYTE_POS_ADDR (from_byte), len_byte); 4801 detect_coding (coding, BYTE_POS_ADDR (from_byte), len_byte);
4802 if (coding->type == coding_type_undecided) 4802 if (coding->type == coding_type_undecided)
4803 /* It seems that the text contains only ASCII, but we 4803 {
4804 should not left it undecided because the deeper 4804 /* It seems that the text contains only ASCII, but we
4805 decoding routine (decode_coding) tries to detect the 4805 should not left it undecided because the deeper
4806 encodings again in vain. */ 4806 decoding routine (decode_coding) tries to detect the
4807 coding->type = coding_type_emacs_mule; 4807 encodings again in vain. */
4808 coding->type = coding_type_emacs_mule;
4809 coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE;
4810 }
4808 } 4811 }
4809 if (coding->eol_type == CODING_EOL_UNDECIDED 4812 if (coding->eol_type == CODING_EOL_UNDECIDED
4810 && coding->type != coding_type_ccl) 4813 && coding->type != coding_type_ccl)