changeset 100940:24b031f24662

(Finsert_file_contents): In the case of replace, remeber the coding system used for decoding in coding_system.
author Kenichi Handa <handa@m17n.org>
date Wed, 07 Jan 2009 12:26:02 +0000
parents 09ea3896dab5
children 56987b20f4bc
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Wed Jan 07 09:58:23 2009 +0000
+++ b/src/fileio.c	Wed Jan 07 12:26:02 2009 +0000
@@ -3687,6 +3687,7 @@
 	  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)));