From 5560aecd3ef9f15caba7a3344ffe61aa904470c5 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 16 Sep 2003 00:24:21 +0000 Subject: [PATCH] (Finsert_file_contents): Call setup_coding_system in the case of auto saving. --- src/fileio.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 1103a51bd65..6476ce21264 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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 -- 2.39.2