emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: ediff displays gibberish output


From: Michael Kifer
Subject: Re: ediff displays gibberish output
Date: Sun, 17 Dec 2006 09:57:09 -0500

> > From: Leo <address@hidden>
> > Date: Wed, 13 Dec 2006 01:22:50 +0000
> > 
> >     How to reproduce:
> >       1. save the attachments to file1.txt and file2.txt
> >       
> >       2. M-x ediff RET and choose file1.txt file2.txt respectively
> >       
> >       3. Type 'D' in ediff panel window and you see the difference
> >          output is gibberish as shown in the screenshot.
> 
> Thank you for your report.
> 
> I'm not sure this is a bug, though: `D' displays the raw output from
> Diff, whose encoding is not clear, because it comes from two different
> files that could be each encoded differently.  Ediff reads the output
> of Diff in raw-text form, precisely for this reason, and that is how
> the buffer is displayed to you when you press `D'.  What you see is
> not gibberish, but the UTF-8 encoding of the non-ASCII characters,
> exactly as they are in the written in file1.txt on disk.
> 
> I'm not sure we can do any better here, unless we somehow know the
> encoding of each of the two files.
> 
> Michael and Handa-san, could you please comment on this?
> 


This is also what I basically told Leo.


        --michael  




reply via email to

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