From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: ediff and coding systems Date: Mon, 22 Oct 2007 06:20:15 +0200 Message-ID: References: <25054.1192992406@cs.sunysb.edu> <200710211922.l9LJMQFX013338@oogie-boogie.ics.uci.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1193026835 17385 80.91.229.12 (22 Oct 2007 04:20:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2007 04:20:35 +0000 (UTC) Cc: dann@ics.uci.edu, kifer@cs.sunysb.edu, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 22 06:20:36 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IjomF-0001M0-7R for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 06:20:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ijom7-0008C6-9K for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 00:20:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ijom4-0008AI-8I for emacs-devel@gnu.org; Mon, 22 Oct 2007 00:20:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ijom2-00089p-Ph for emacs-devel@gnu.org; Mon, 22 Oct 2007 00:20:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ijom2-00089l-Jq for emacs-devel@gnu.org; Mon, 22 Oct 2007 00:20:18 -0400 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ijom2-00027F-DQ for emacs-devel@gnu.org; Mon, 22 Oct 2007 00:20:18 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-42-227.inter.net.il [80.230.42.227]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id DXO11569 (AUTH halo1); Mon, 22 Oct 2007 06:20:14 +0200 (IST) In-reply-to: (message from Kenichi Handa on Mon, 22 Oct 2007 12:42:47 +0900) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81427 Archived-At: > From: Kenichi Handa > CC: kifer@cs.sunysb.edu, eliz@gnu.org, emacs-devel@gnu.org > Date: Mon, 22 Oct 2007 12:42:47 +0900 > > read-coding-system("Select coding system (default mule-utf-8): " mule-utf-8) > select-safe-coding-system-interactively(1 5557 (utf-8 ....)) > select-safe-coding-system(1 5557 nil nil "/tmp/fineDiffA155544eB") > write-region(1 5557 "/tmp/fineDiffA155544eB" nil no-message) > ediff-make-temp-file(# "fineDiffA" "/tmp/fineDiffA155544eB") > ediff-make-fine-diffs(5 noforce) > ediff-install-fine-diff-if-necessary(5) > ediff-next-difference(1) > call-interactively(ediff-next-difference) > > I don't know why ediff-make-temp-file is called, but perhaps > it should call write-region while binding > coding-system-for-write to `no-conversion' or `emacs-mule'. Not a good idea, I'm afraid: those temporary files (or parts thereof) will need to be read back, when `diff' finishes, so each one needs to be in the original encoding, or else the diffs will be incorrect. E.g., imagine two files with the same text, but different encodings: I don't think we want ediff say that they compare identical.