diff options
author | Kenichi Handa <handa@m17n.org> | 2000-10-13 08:01:24 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2000-10-13 08:01:24 +0000 |
commit | e7fa0d9dd7188603df3e4528b995f84246c4343f (patch) | |
tree | 0c0284c0234765fedc5671059d98d848e49a1456 /src/coding.c | |
parent | 795613f56a84c2684d58f6b047e27e9480551438 (diff) | |
download | emacs-e7fa0d9dd7188603df3e4528b995f84246c4343f.tar.gz |
(code_convert_region): Be sure to initialize coding->category_idx.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 13 |
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) { 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) |