<font color='black' size='2' face='arial'>Before writing a bunch of code.... <font size="2">verify that the git au<font size="2">t<font size="2">o-convert setting for pulling files in<font size="2">to the <font size="2">working tree is the same for b<font size="2">oth VTK and VTKData on th<font size="2">e machines in ques<font size="2">tion.<br>
<br>
<font size="2"><font size="2">Looks like the VTKData file is the one missing the CRs (has <font size="2">fewer bytes)</font></font></font> -- makes me think the git setting is wrong for the VTKData checkout.<br>
</font></font></font></font></font></font></font></font><font size="2" color="black" face="arial">

<div> <br>

</div>



<div> <br>

</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>

From: Brad King <brad.king@kitware.com><br>

To: Bill Lorensen <bill.lorensen@gmail.com><br>

Cc: VTK Developers <vtk-developers@vtk.org><br>

Sent: Fri, Feb 8, 2013 3:31 pm<br>

Subject: Re: [vtk-developers] Comparing ascii files with kwsys::FilesDiffer<br>

<br>









<div id="AOLMsgPart_0_58082682-f0bf-4555-8d08-27d39d51a644" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">

<pre style="font-size: 9pt;"><tt>On 02/08/2013 03:26 PM, Bill Lorensen wrote:
> The test compares two ASCII files. The difference is because (some,
> but not all) windows systems handle newline differently than linux and
> mac os.

The SystemTools::FilesDiffer method was originally added for CMake's
configure_file command to decide whether to replace a file with a new
version or to not replace it because the configured result is the same.
In this use case both files are produced the same way so newlines match.
That's why we haven't covered this before.

> In the link you can see that the contents of the two files "look" the
> same, but the lengths of the two files is different and
> vtksys::FilesDiffer reports they are different. That's because some
> windows systems use a CR/LF character for newline while the linux
> systems use LF.

> How to solve this? I could add a FileDiff program to the test that
> uses getline to compare the two files.

We don't use FilesDiffer to compare test images to baselines because
there can be pixel-fuzz differences and such.  Text file comparison
may have various tolerances other than just newlines and we will not
be able to cover them all in FilesDiffer.  Therefore I think VTK
should have its own comparison tool for text files just like it does
for images.

-Brad
_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Follow this link to subscribe/unsubscribe:
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a>

</tt></pre>
</div>

 <!-- end of AOLMsgPart_0_58082682-f0bf-4555-8d08-27d39d51a644 -->



</div>

</font></font>