summaryrefslogtreecommitdiff
path: root/lisp/vc-annotate.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/vc-annotate.el')
-rw-r--r--lisp/vc-annotate.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc-annotate.el b/lisp/vc-annotate.el
index 22ff3dac992..6c7ae5a876b 100644
--- a/lisp/vc-annotate.el
+++ b/lisp/vc-annotate.el
@@ -375,7 +375,8 @@ mode-specific menu. `vc-annotate-color-map' and
;; In case it had to be uniquified.
(setq temp-buffer-name (buffer-name))))
(with-output-to-temp-buffer temp-buffer-name
- (let ((backend (vc-backend file)))
+ (let ((backend (vc-backend file))
+ (coding-system-for-read buffer-file-coding-system))
(vc-call-backend backend 'annotate-command file
(get-buffer temp-buffer-name) rev)
;; we must setup the mode first, and then set our local