]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finsert_file_contents): Call setup_coding_system in
authorKenichi Handa <handa@m17n.org>
Tue, 16 Sep 2003 00:24:21 +0000 (00:24 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 16 Sep 2003 00:24:21 +0000 (00:24 +0000)
the case of auto saving.

src/fileio.c

index 1103a51bd6595abc1f0e419df7e39136492c3848..6476ce2126411f38f930a4bd324754e7662e37f9 100644 (file)
@@ -3788,7 +3788,12 @@ actually used.  */)
     }
 
   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