summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/info.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/info.el b/lisp/info.el
index bcff7ccffd3..48d9d1981af 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1115,6 +1115,10 @@ is non-nil)."
Info-current-file-completions nil
buffer-file-name nil)
(erase-buffer)
+ ;; Erase any memory of the previous coding-system, so that
+ ;; info-insert-file-contents sets the buffer's encoding to
+ ;; what the Info file specifies.
+ (set-buffer-file-coding-system 'undecided t)
(info-insert-file-contents filename nil)
(setq default-directory (file-name-directory filename))
(set-buffer-modified-p nil)