diff lisp/vc-annotate.el @ 104949:4fab4cdb3614

* vc-annotate.el (vc-annotate): Use the main file's coding-system to decode annotated text, regardless of language environment. (Bug#2741)
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 11 Sep 2009 10:58:54 +0000
parents 8e50ad0da4e8
children 6f463ea7a91a
line wrap: on
line diff
--- a/lisp/vc-annotate.el	Fri Sep 11 10:01:21 2009 +0000
+++ b/lisp/vc-annotate.el	Fri Sep 11 10:58:54 2009 +0000
@@ -375,7 +375,8 @@
 		;; 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