aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
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)