changeset 89504:e1159b1e5142

(Finsert_file_contents): Call setup_coding_system in the case of auto saving.
author Kenichi Handa <handa@m17n.org>
date Tue, 16 Sep 2003 00:24:21 +0000
parents 684f87e17d28
children c7f742ad46b6
files src/fileio.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Thu Sep 11 23:06:03 2003 +0000
+++ b/src/fileio.c	Tue Sep 16 00:24:21 2003 +0000
@@ -3788,7 +3788,12 @@
     }
 
   if (EQ (Vcoding_system_for_read, Qauto_save_coding))
-    coding_system = Qutf_8_emacs;
+    {
+      coding_system = Qutf_8_emacs;
+      setup_coding_system (coding_system, &coding);
+      /* Ensure we set Vlast_coding_system_used.  */
+      set_coding_system = 1;
+    }
   else if (BEG < Z)
     {
       /* Decide the coding system to use for reading the file now