summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 9d1ebc8a4cb..1887560827c 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -8301,7 +8301,11 @@ encode_coding_object (struct coding_system *coding,
}
}
else
- code_conversion_save (0, 0);
+ {
+ code_conversion_save (0, 0);
+ coding->src_pos = from;
+ coding->src_pos_byte = from_byte;
+ }
if (BUFFERP (dst_object))
{