1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(code_convert_region): Be sure to initialize coding->category_idx.

This commit is contained in:
Kenichi Handa 2000-10-13 08:01:24 +00:00
parent c744452b31
commit 62b3ef1d94

View 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)