>From fd04b0d03f61344a4c9a37cafc86495c79a46d19 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 30 May 2013 14:17:08 -0700 Subject: [PATCH] vc buffers now use the encoding of their input --- lisp/vc/vc-dispatcher.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index 309cf50..1bada72 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -178,7 +178,9 @@ Another is that undo information is not kept." (setq default-directory olddir) (let ((buffer-undo-list t) (inhibit-read-only t)) - (erase-buffer)))) + (erase-buffer)) + (when coding-system-for-read + (setq buffer-file-coding-system coding-system-for-read)))) (defvar vc-sentinel-movepoint) ;Dynamically scoped. -- 1.7.10.4