changeset 105862:b2666b729b94

(Finsert_file_contents): Be sure set coding-system of the buffer in case of replace.
author Kenichi Handa <handa@m17n.org>
date Thu, 05 Nov 2009 04:12:49 +0000
parents 02f4b7818534
children 5c34367ac13c
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Thu Nov 05 03:25:41 2009 +0000
+++ b/src/fileio.c	Thu Nov 05 04:12:49 2009 +0000
@@ -3713,6 +3713,7 @@
 	}
 
       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)));