aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2006-11-14 10:41:04 +0000
committerKenichi Handa2006-11-14 10:41:04 +0000
commit1364f4203366b2d3c5c2a7b7078a68bab5aa8736 (patch)
tree81a8dc78915fa49b36ae240f97bc2366f4943535 /src/coding.c
parent9b150aa248333b2b314f9e652190f6777f6ce252 (diff)
downloademacs-1364f4203366b2d3c5c2a7b7078a68bab5aa8736.tar.gz
emacs-1364f4203366b2d3c5c2a7b7078a68bab5aa8736.zip
(code_convert_region): Initialize
coding->heading_ascii. (decode_coding_string, code_convert_region): Likewise.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c5
1 files changed, 5 insertions, 0 deletions
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)
5581 inhibit_modification_hooks = saved_inhibit_modification_hooks; 5581 inhibit_modification_hooks = saved_inhibit_modification_hooks;
5582 } 5582 }
5583 5583
5584 coding->heading_ascii = 0;
5585
5584 if (! encodep && CODING_REQUIRE_DETECTION (coding)) 5586 if (! encodep && CODING_REQUIRE_DETECTION (coding))
5585 { 5587 {
5586 /* We must detect encoding of text and eol format. */ 5588 /* We must detect encoding of text and eol format. */
@@ -6225,6 +6227,8 @@ decode_coding_string (str, coding, nocopy)
6225 saved_coding_symbol = coding->symbol; 6227 saved_coding_symbol = coding->symbol;
6226 coding->src_multibyte = STRING_MULTIBYTE (str); 6228 coding->src_multibyte = STRING_MULTIBYTE (str);
6227 coding->dst_multibyte = 1; 6229 coding->dst_multibyte = 1;
6230 coding->heading_ascii = 0;
6231
6228 if (CODING_REQUIRE_DETECTION (coding)) 6232 if (CODING_REQUIRE_DETECTION (coding))
6229 { 6233 {
6230 /* See the comments in code_convert_region. */ 6234 /* See the comments in code_convert_region. */
@@ -6437,6 +6441,7 @@ encode_coding_string (str, coding, nocopy)
6437 /* Try to skip the heading and tailing ASCIIs. We can't skip them 6441 /* Try to skip the heading and tailing ASCIIs. We can't skip them
6438 if we must run CCL program or there are compositions to 6442 if we must run CCL program or there are compositions to
6439 encode. */ 6443 encode. */
6444 coding->heading_ascii = 0;
6440 if (coding->type != coding_type_ccl 6445 if (coding->type != coding_type_ccl
6441 && (! coding->cmp_data || coding->cmp_data->used == 0)) 6446 && (! coding->cmp_data || coding->cmp_data->used == 0))
6442 { 6447 {