aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/coding.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 250977eb5f2..d344527b1d2 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5356,6 +5356,10 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
5356 encodings again in vain. */ 5356 encodings again in vain. */
5357 coding->type = coding_type_emacs_mule; 5357 coding->type = coding_type_emacs_mule;
5358 coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE; 5358 coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE;
5359 /* As emacs-mule decoder will handle composition, we
5360 need this setting to allocate coding->cmp_data
5361 later. */
5362 coding->composing = COMPOSITION_NO;
5359 } 5363 }
5360 } 5364 }
5361 if (coding->eol_type == CODING_EOL_UNDECIDED 5365 if (coding->eol_type == CODING_EOL_UNDECIDED
@@ -5808,7 +5812,14 @@ decode_coding_string (str, coding, nocopy)
5808 { 5812 {
5809 detect_coding (coding, XSTRING (str)->data, to_byte); 5813 detect_coding (coding, XSTRING (str)->data, to_byte);
5810 if (coding->type == coding_type_undecided) 5814 if (coding->type == coding_type_undecided)
5811 coding->type = coding_type_emacs_mule; 5815 {
5816 coding->type = coding_type_emacs_mule;
5817 coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE;
5818 /* As emacs-mule decoder will handle composition, we
5819 need this setting to allocate coding->cmp_data
5820 later. */
5821 coding->composing = COMPOSITION_NO;
5822 }
5812 } 5823 }
5813 if (coding->eol_type == CODING_EOL_UNDECIDED 5824 if (coding->eol_type == CODING_EOL_UNDECIDED
5814 && coding->type != coding_type_ccl) 5825 && coding->type != coding_type_ccl)