make-w32
[Top][All Lists]
Advanced

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

Re: Schedule for GNU make 3.81


From: Earnie Boyd
Subject: Re: Schedule for GNU make 3.81
Date: Wed, 23 Feb 2005 08:08:55 -0500 (EST)
User-agent: SquirrelMail/1.4.3a

<quote who="Eli Zaretskii">
>> Date: Tue, 22 Feb 2005 16:14:02 -0500 (EST)
>> From: "Earnie Boyd" <address@hidden>
>> Cc: "J. Grant" <address@hidden>, address@hidden, address@hidden
>>
>> The MSYS package has a modified version of diff that treats \r as white
>> space with the -w --ignore-all-space switch.
>
> That's better than nothing, but I think Diff should ignore CR
> characters _by_default_, without any extra switches.  That way, you
> won't need to hack scripts that test files produced on Windows against
> expected results that come from Unix.
>

Unfortunately that isn't always correct.  MSYS operates in ``binary mode''
and not ``text mode'' so that files that end in \n remain that way.  I
provided the treat \r as white space to deal with file a has \r\n and file
b has \n line endings.  The two files are different and one could make the
case that they wanted the diff file to show that difference.  So to allow
that case which should be the default I treat \r as white space.

Earnie

--
http://www.mingw.org
http://sourceforge.net/projects/mingw
https://sourceforge.net/donate/index.php?user_id=15438




reply via email to

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