# HG changeset patch # User Kenichi Handa # Date 1163500798 0 # Node ID 11025612f8892c2b210286997b97798aa7cefe27 # Parent 88d63648c7844630ea65eb02e1cb755173cebb6c (code_convert_region): Initialize coding->heading_ascii. (decode_coding_string, code_convert_region): Likewise. diff -r 88d63648c784 -r 11025612f889 src/coding.c --- 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)) {