make-w32
[Top][All Lists]
Advanced

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

Re: make/tests issues


From: Earnie Boyd
Subject: Re: make/tests issues
Date: Wed, 10 Mar 2004 18:11:18 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007

Which GNU diff are you using? The diff that comes with MSYS doesn't output \r\n only \n line endings.

I'll need to update my CVS version and give the tests another go.

If perl is being used, you should use the version supplied in msysDTK.

Earnie.

J. Grant wrote:



on the 06/03/04 11:42, Eli Zaretskii wrote:

Date: Wed, 3 Mar 2004 18:35:42 -0500
From: "Paul D. Smith" <address@hidden>

%% "J. Grant" <address@hidden> writes:

  jg> Ok, I think running something like:

  jg> "tr -d \r <comments.log >normalised_comments.log"

  jg> on each output file would mean the diff comparisons would be able
  jg> to use the normal LF format files included in the distribution.
  jg> Could something like this be added?

Well, that's not very portable.  It obviously won't work on Windows
ports without any sort of UNIX emulation, at the very least.


Why is there a need for this?  The Make test suite calls "diff -c" to
compare the expected output with the actual one; a well-ported Diff
will compare two files which are identical except for the Unix- vs
Wndows-style end-of-line format issue as being identical.  Why doesn't
it happen in the OP's case?


Using the w32 native build of make produces an exe which outputs in CRLF
format.  I ran the tests using MSYS/rxvt.  GNU diff v2.7 compares the
base file with the log and sees the difference.   I don't think there is
a way to turn off CRLF/LF distinction in GNU diff.  So we need to find a
way to make the text use the same line-endings.  Or use a diff that does
not treat line-endings as different.

As an alternative there could be a script to convert all the base files
to CRLF format.

I did not receive Paul's email yet which you replied to.

Regards

JG




_______________________________________________
Make-w32 mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/make-w32


--
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]