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: Kenichi Handa
Subject: Re: ediff displays gibberish output
Date: Mon, 18 Dec 2006 10:17:48 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.91 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, Leo <address@hidden> writes:

> * Eli Zaretskii (2006-12-17 06:30 +0200) said:
>   ^^^^^^^^^^^^^
>>> From: Leo <address@hidden>
>>> Date: Sun, 17 Dec 2006 03:15:59 +0000
>>> 
>>> But a file with eight-bit characters can have a correct diff
>>> output. What makes ediff fail where diff succeeds?
> >
> > I'm not sure what you mean, but my crystal ball says that you are
> > looking at the output of Diff in a terminal that supports UTF-8
> > encoded characters.  If that's the case, then you will only see
> > correct output from Diff with UTF-8 encoded files; other encodings
> > will show gibberish.
> >
> > By contrast, Emacs does not support a single encoding, it supports
> > many different ones.  It needs to know the right encoding to display
> > the characters as readable.

> I mean in emacs running diff-buffer-with-file or vc-diff. The diff
> output displays correctly.

That's perhaps because Emacs reads the output of process
while decoding by a detected coding system.  That method
works for your test case, but fails in a case that two files
contain non-ascii characters in different encoding
(e.g. UTF-8 vs GBK).

---
Kenichi Handa
address@hidden




reply via email to

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