aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-10-19 08:27:14 +0000
committerEli Zaretskii2008-10-19 08:27:14 +0000
commit95aac6d1142bbd42603f18da090400bf94cf2ead (patch)
tree9179b0eee92efd11e29caae7c2daed726905abb5
parentf9fc24a60e236590b4e5a9f7f9805fd15e552bba (diff)
downloademacs-95aac6d1142bbd42603f18da090400bf94cf2ead.tar.gz
emacs-95aac6d1142bbd42603f18da090400bf94cf2ead.zip
(ediff-exec-process): For buffer jobs, bind coding-system-for-read
to ediff-coding-system-for-write.
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/ediff-diff.el8
2 files changed, 20 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7168c0db0f0..706808fb0a3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,16 @@
12008-10-19 Eli Zaretskii <eliz@gnu.org>
2
3 Fix Bug #1183:
4
5 * ediff-diff.el (ediff-exec-process): For buffer jobs, bind
6 coding-system-for-read to ediff-coding-system-for-write.
7
8 * ediff-util.el (ediff-make-temp-file): Unconditionally bind
9 coding-system-for-write to ediff-coding-system-for-write.
10
11 * ediff-init.el (ediff-coding-system-for-read): Doc fix.
12 (ediff-coding-system-for-write): Set to emacs-internal.
13
12008-10-18 Stefan Monnier <monnier@iro.umontreal.ca> 142008-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 15
3 * international/mule-conf.el (emacs-internal): New coding system alias. 16 * international/mule-conf.el (emacs-internal): New coding system alias.
diff --git a/lisp/ediff-diff.el b/lisp/ediff-diff.el
index ec9bf24c493..2dd34a9f512 100644
--- a/lisp/ediff-diff.el
+++ b/lisp/ediff-diff.el
@@ -1207,7 +1207,13 @@ delimiter regions"))
1207;; args. 1207;; args.
1208(defun ediff-exec-process (program buffer synch options &rest files) 1208(defun ediff-exec-process (program buffer synch options &rest files)
1209 (let ((data (match-data)) 1209 (let ((data (match-data))
1210 (coding-system-for-read ediff-coding-system-for-read) 1210 ;; If this is a buffer job, we are diffing temporary files
1211 ;; produced by Emacs with ediff-coding-system-for-write, so
1212 ;; use the same encoding to read the results.
1213 (coding-system-for-read
1214 (if (string-match "buffer" (symbol-name ediff-job-name))
1215 ediff-coding-system-for-write
1216 ediff-coding-system-for-read))
1211 args) 1217 args)
1212 (setq args (append (split-string options) files)) 1218 (setq args (append (split-string options) files))
1213 (setq args (delete "" (delq nil args))) ; delete nil and "" from arguments 1219 (setq args (delete "" (delq nil args))) ; delete nil and "" from arguments