bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Help needed in - diverting the output of diff command to a text file


From: Eli Zaretskii
Subject: Re: Help needed in - diverting the output of diff command to a text file
Date: Tue, 16 Mar 2004 21:47:57 +0200

> Date: Tue, 16 Mar 2004 08:17:56 +0100
> From: Stepan Kasal <address@hidden>
> > 
> > IMHO, that's a bug in that port of Diff: it should by default use
> > Windows-style CR-LF pairs, not a single newline.
> 
> that's not so clear.  You would be right if it were a real Windows port.

There are real Windows ports, several ones, actually.

> I'd expect that cygwin diff will be able to work with unix text files
> as if I were on a unix, producing same patch files as on unix.

GNU Diff has a --binary option for that, so there's no need for the
Cygwin port to do anything special here.

> But it could be possible to have smart diff which would auto-detect
> the eol style and would produce a consistent output...

It could be done, but IMHO it isn't worth the effort, as there would
be too mant cases that could defeat such guessing.

Diff on Windows, if ported correctly, already produces a consistent
output: it always outputs Windows-style CR-LF end-of-line format,
unless explicitly told otherwise.




reply via email to

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