From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: ediff and coding systems Date: Mon, 22 Oct 2007 11:32:30 -0400 Message-ID: References: <25054.1192992406@cs.sunysb.edu> <200710211922.l9LJMQFX013338@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193067172 14400 80.91.229.12 (22 Oct 2007 15:32:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2007 15:32:52 +0000 (UTC) Cc: dann@ics.uci.edu, emacs-devel@gnu.org, kifer@cs.sunysb.edu, Kenichi Handa To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 22 17:32:52 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 1IjzGt-0003tW-07 for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 17:32:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjzGl-0007JI-7v for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 11:32:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjzGf-0007GY-Tf for emacs-devel@gnu.org; Mon, 22 Oct 2007 11:32:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjzGe-0007Dp-7D for emacs-devel@gnu.org; Mon, 22 Oct 2007 11:32:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjzGd-0007Db-Vm for emacs-devel@gnu.org; Mon, 22 Oct 2007 11:32:36 -0400 Original-Received: from h209-71-201-81.gtconnect.net ([209.71.201.81] helo=ceviche.home) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjzGb-0002zL-7y; Mon, 22 Oct 2007 11:32:33 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 91A71B4A74; Mon, 22 Oct 2007 11:32:30 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Mon\, 22 Oct 2007 06\:20\:15 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:81462 Archived-At: > 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), so we want to deal with *any* char (even those that will not be savable in the current buffer-file-coding-system) and both files that we pass to `diff' will be temporaily created by ediff anyway so that will also ensure they both use the same encoding. Stefan