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 23:11:38 +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 1193087526 24971 80.91.229.12 (22 Oct 2007 21:12:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2007 21:12:06 +0000 (UTC) Cc: dann@ics.uci.edu, emacs-devel@gnu.org, kifer@cs.sunysb.edu, handa@m17n.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 22 23:12:06 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 1Ik4ZC-0002J7-0x for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 23:12:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ik4Z4-0003wg-6H for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 17:11:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ik4Ys-0003jf-S6 for emacs-devel@gnu.org; Mon, 22 Oct 2007 17:11:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ik4Yq-0003eq-3C for emacs-devel@gnu.org; Mon, 22 Oct 2007 17:11:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ik4Yp-0003eN-Js for emacs-devel@gnu.org; Mon, 22 Oct 2007 17:11:43 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ik4Yp-0008Uu-D2 for emacs-devel@gnu.org; Mon, 22 Oct 2007 17:11:43 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-163-251.inter.net.il [80.230.163.251]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id ICM58554 (AUTH halo1); Mon, 22 Oct 2007 23:09:01 +0200 (IST) In-reply-to: (message from Stefan Monnier on Mon, 22 Oct 2007 11:32:30 -0400) 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:81481 Archived-At: > Cc: Kenichi Handa , dann@ics.uci.edu, kifer@cs.sunysb.edu, > emacs-devel@gnu.org > From: Stefan Monnier > Date: Mon, 22 Oct 2007 11:32:30 -0400 > > > 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. > > Quite the contrary: it's the only right thing to do because we're comparing > two pieces of buffer (not file) I don't think ediff-make-temp-file knows that. It's a general-purpose utility function in ediff, AFAIR, and is invoked for files as well. Note: I was responding to Handa-san's suggestion that ediff-make-temp-file binds coding-system-for-write.