comparison src/coding.c @ 32443:57fa108c491f

(code_convert_region): Be sure to initialize coding->category_idx.
author Kenichi Handa <handa@m17n.org>
date Fri, 13 Oct 2000 08:01:24 +0000
parents ec8a58b2ec83
children 05513a882886
comparison
equal deleted inserted replaced
32442:0c5fc183b211 32443:57fa108c491f
4798 move_gap_both (from, from_byte); 4798 move_gap_both (from, from_byte);
4799 if (coding->type == coding_type_undecided) 4799 if (coding->type == coding_type_undecided)
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)
4811 { 4814 {
4812 saved_coding_symbol = coding->symbol; 4815 saved_coding_symbol = coding->symbol;