emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ediff and coding systems


From: Stefan Monnier
Subject: Re: ediff and coding systems
Date: Mon, 22 Oct 2007 11:32:30 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]