5

I have 2 same php file. one is download in win7, another is from linux.
I use folder compare function in beyond compare.
Beyond compare regards them as different file because one is PC, another one is UNIX.

Screenshot: screenshot

I would like to ignore this difference ,how to do ?

2 Answers 2

3

Can you check the session settings (In the menu under Settings -> Session Settings) if you compare also the line endings?

enter image description here You find the flag on the botton of the options.


If you need a pre-check in folder compare you can use the following settings:

enter image description here (See the different filesize 18 to 19 Byte - The difference is the LF)

You need the overwrite quick test results. Without this the other checks return already a result. With this, your comparison will need more time.

8
  • is that only for text compare? how to do it in folder compare?
    – kittygirl
    Jun 19, 2017 at 1:25
  • See my update for binary comparison in folder compare.
    – knut
    Jun 19, 2017 at 9:00
  • Binary comparison will not ignore lf,crlf difference when I do folder compare
    – kittygirl
    Jun 20, 2017 at 1:47
  • I revised the question,how to ignore lf,crlf difference in beyond compare folder compare?
    – kittygirl
    Jun 20, 2017 at 13:23
  • No, I made my first correction under time pressure and without attention. I hope I have it now.
    – knut
    Jun 20, 2017 at 19:17
0

To ignore the ANSI format between PC and UNIX I simply selected the Rules-based comparison from the Folder Compare - Session Settings window (Session>Session Settings>Comparison). Note the version of beyond compare I am using is Version 3.3.7 (build 15876):

Folder Compare - Session Settings window

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.