[vtk-developers] Comparing ascii files with kwsys::FilesDiffer
Bill Lorensen
bill.lorensen at gmail.com
Fri Feb 8 15:26:24 EST 2013
Brad,
I'm trying to track down the cause for a failing test:
http://open.cdash.org/testDetails.php?test=176631193&build=2804631
The test compares two ASCII files. The difference is because (some,
but not all) windows systems handle newline differently than linux and
mac os.
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.
Can you suggest a better solution?
Thanks,
Bill
More information about the vtk-developers
mailing list