Commit 77619f8e authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(recover-file): Bind coding-system-for-read to

parent 356a6224
......@@ -3617,8 +3617,8 @@ non-nil, it is called instead of rereading visited file contents."
(let ((buffer-read-only nil)
;; Keep the current buffer-file-coding-system.
(coding-system buffer-file-coding-system)
;; Auto-saved file shoule be read without any code conversion.
(coding-system-for-read 'emacs-mule-unix))
;; Auto-saved file shoule be read with special coding.
(coding-system-for-read 'auto-save-coding))
(insert-file-contents file-name nil)
(set-buffer-file-coding-system coding-system))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment