remeber the coding system used for decoding in coding_system.
2009-01-07 Kenichi Handa <handa@m17n.org>
+ * fileio.c (Finsert_file_contents): In the case of replace,
+ remeber the coding system used for decoding in
+ coding_system (Bug#1039).
+
* coding.c (decode_coding_utf_8): Check byte_after_cr before
breaking the loop. (Bug#870)
(decode_coding_utf_16, decode_coding_emacs_mule)
coding.mode &= ~CODING_MODE_LAST_BLOCK;
}
+ coding_system = CODING_ID_NAME (coding.id);
decoded = BUF_BEG_ADDR (XBUFFER (conversion_buffer));
inserted = (BUF_Z_BYTE (XBUFFER (conversion_buffer))
- BUF_BEG_BYTE (XBUFFER (conversion_buffer)));