(Finsert_file_contents): Be sure set coding-system of
authorKenichi Handa <handa@m17n.org>
Thu, 5 Nov 2009 04:16:04 +0000 (04:16 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 5 Nov 2009 04:16:04 +0000 (04:16 +0000)
the buffer in case of replace.

src/ChangeLog
src/fileio.c

index 8dd8727..d103f18 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-05  Kenichi Handa  <handa@m17n.org>
+
+       * fileio.c (Finsert_file_contents): Be sure set coding-system of
+       the buffer in case of replace.
+
 2009-11-04  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * puresize.h (BASE_PURESIZE): Increase to 1620000.
index 146e77c..c61604a 100644 (file)
@@ -3713,6 +3713,7 @@ variable `last-coding-system-used' to the coding system actually used.  */)
        }
 
       coding_system = CODING_ID_NAME (coding.id);
+      set_coding_system = 1;
       decoded = BUF_BEG_ADDR (XBUFFER (conversion_buffer));
       inserted = (BUF_Z_BYTE (XBUFFER (conversion_buffer))
                  - BUF_BEG_BYTE (XBUFFER (conversion_buffer)));