aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc/vc.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index 9925196f737..326284f4446 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1966,10 +1966,13 @@ Use BACKEND as the VC backend if specified."
1966 (with-current-buffer filebuf 1966 (with-current-buffer filebuf
1967 (let ((failed t)) 1967 (let ((failed t))
1968 (unwind-protect 1968 (unwind-protect
1969 (let ((coding-system-for-read 'no-conversion) 1969 (let ((coding-system-for-read 'no-conversion))
1970 (coding-system-for-write 'no-conversion))
1971 (with-temp-file filename 1970 (with-temp-file filename
1972 (let ((outbuf (current-buffer))) 1971 (let ((outbuf (current-buffer)))
1972 ;; We will read the backend's output with no
1973 ;; conversions, so we should also save the
1974 ;; temporary file with no encoding conversions.
1975 (setq buffer-file-coding-system 'no-conversion)
1973 ;; Change buffer to get local value of 1976 ;; Change buffer to get local value of
1974 ;; vc-checkout-switches. 1977 ;; vc-checkout-switches.
1975 (with-current-buffer filebuf 1978 (with-current-buffer filebuf