Mercurial > emacs
changeset 73995:11025612f889
(code_convert_region): Initialize
coding->heading_ascii.
(decode_coding_string, code_convert_region): Likewise.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 14 Nov 2006 10:39:58 +0000 |
parents | 88d63648c784 |
children | 80280c79d943 |
files | src/coding.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Tue Nov 14 08:22:42 2006 +0000 +++ b/src/coding.c Tue Nov 14 10:39:58 2006 +0000 @@ -5581,6 +5581,8 @@ inhibit_modification_hooks = saved_inhibit_modification_hooks; } + coding->heading_ascii = 0; + if (! encodep && CODING_REQUIRE_DETECTION (coding)) { /* We must detect encoding of text and eol format. */ @@ -6225,6 +6227,8 @@ saved_coding_symbol = coding->symbol; coding->src_multibyte = STRING_MULTIBYTE (str); coding->dst_multibyte = 1; + coding->heading_ascii = 0; + if (CODING_REQUIRE_DETECTION (coding)) { /* See the comments in code_convert_region. */ @@ -6437,6 +6441,7 @@ /* Try to skip the heading and tailing ASCIIs. We can't skip them if we must run CCL program or there are compositions to encode. */ + coding->heading_ascii = 0; if (coding->type != coding_type_ccl && (! coding->cmp_data || coding->cmp_data->used == 0)) {