From 1364f4203366b2d3c5c2a7b7078a68bab5aa8736 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 14 Nov 2006 10:41:04 +0000 Subject: [PATCH] (code_convert_region): Initialize coding->heading_ascii. (decode_coding_string, code_convert_region): Likewise. --- src/ChangeLog | 6 ++++++ src/coding.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 407e2508b21..00974511e94 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2006-11-14 Kenichi Handa + + * coding.c (code_convert_region): Initialize + coding->heading_ascii. + (decode_coding_string, code_convert_region): Likewise. + 2006-11-14 YAMAMOTO Mitsuharu * config.in: Regenerate. diff --git a/src/coding.c b/src/coding.c index 244861fe884..cf6bab2aeba 100644 --- a/src/coding.c +++ b/src/coding.c @@ -5581,6 +5581,8 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) 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 @@ decode_coding_string (str, coding, nocopy) 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 @@ encode_coding_string (str, coding, nocopy) /* 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)) { -- 2.39.5