summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2006-11-14 10:41:04 +0000
committerKenichi Handa <handa@m17n.org>2006-11-14 10:41:04 +0000
commit1364f4203366b2d3c5c2a7b7078a68bab5aa8736 (patch)
tree81a8dc78915fa49b36ae240f97bc2366f4943535 /src/coding.c
parent9b150aa248333b2b314f9e652190f6777f6ce252 (diff)
downloademacs-1364f4203366b2d3c5c2a7b7078a68bab5aa8736.tar.gz
(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)
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))
{