Mercurial > emacs
changeset 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 | 0c5fc183b211 |
children | dd1d1067760b |
files | src/coding.c |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Fri Oct 13 08:01:04 2000 +0000 +++ b/src/coding.c Fri Oct 13 08:01:24 2000 +0000 @@ -4800,11 +4800,14 @@ { 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)