<quote who="Eli Zaretskii"> >> Date: Tue, 22 Feb 2005 16:14:02 -0500 (EST) >> From: "Earnie Boyd" <[EMAIL PROTECTED]> >> Cc: "J. Grant" <[EMAIL PROTECTED]>, [email protected], [EMAIL PROTECTED] >> >> 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 _______________________________________________ Make-w32 mailing list [email protected] http://lists.gnu.org/mailman/listinfo/make-w32
