aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-08-20 22:23:35 +0200
committerLars Ingebrigtsen2020-08-20 22:23:35 +0200
commit9b277a2f8e5c22a05830e61d83876571b8eb56b4 (patch)
tree3cb78c867e069629482be998a41764be57b5ceeb
parentec990559180254c59d80308655b11df4223dd23d (diff)
downloademacs-9b277a2f8e5c22a05830e61d83876571b8eb56b4.tar.gz
emacs-9b277a2f8e5c22a05830e61d83876571b8eb56b4.zip
Fix problem with non-ASCII characters in ediff error messages
* lisp/vc/ediff-diff.el (ediff-prepare-error-list): Decode the data from diff before displaying (bug#5050). This fixes a problem with displaying raw bytes in the error messages in non-ASCII locales.
-rw-r--r--lisp/vc/ediff-diff.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el
index ef466741b24..ccf5a7807f2 100644
--- a/lisp/vc/ediff-diff.el
+++ b/lisp/vc/ediff-diff.el
@@ -325,6 +325,10 @@ one optional arguments, diff-number to refine.")
325 (error-buf ediff-error-buffer)) 325 (error-buf ediff-error-buffer))
326 (ediff-skip-unsuitable-frames) 326 (ediff-skip-unsuitable-frames)
327 (switch-to-buffer error-buf) 327 (switch-to-buffer error-buf)
328 ;; We output data from the diff command using `raw-text' as
329 ;; the coding system, so decode before displaying.
330 (when (eq ediff-coding-system-for-read 'raw-text)
331 (decode-coding-region (point-min) (point-max) 'undecided))
328 (ediff-kill-buffer-carefully ctl-buf) 332 (ediff-kill-buffer-carefully ctl-buf)
329 (user-error "Errors in diff output. Diff output is in %S" diff-buff)))) 333 (user-error "Errors in diff output. Diff output is in %S" diff-buff))))
330 334