# HG changeset patch # User Kenichi Handa # Date 1063671861 0 # Node ID e1159b1e5142c6c4dc2f82f1761b1efcf056b1e2 # Parent 684f87e17d28870d962b3dc0a9f65d3c72669edb (Finsert_file_contents): Call setup_coding_system in the case of auto saving. diff -r 684f87e17d28 -r e1159b1e5142 src/fileio.c --- 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