Original URL: http://www.cnblogs.com/huangtailang/p/3925157.html
The main reasons are:
Two file line end headings are inconsistent, one is the PC, the other is Unix
Workaround:
To compare two files in the folder, click the rule, remove the comparison line end (Pc/mac/unix) option, click Confirm, go back to the folder comparison interface, refresh
Reference:
Http://zhidao.baidu.com/question/586124694.html
Http://zhidao.baidu.com/question/1689627984237109188.html?qbl=relate_question_2&word=beyond%20compare
Http://www.scootersoftware.com/support.php?zz=kb_samebutdifferent
Http://www.scootersoftware.com/help/index.html?text_compare_importance.html
A discussion on the setting of Beyondcompare comparison rules from a failed text comparison
Original URL: http://lirui.blog.51cto.com/2336974/793300
Beyond Compare (BC) is a powerful file comparison tool that is often used when the code is merged. This was discovered during a code comparison: Although the contents of the source file are the same, the BC display two files are different (as shown):
----
We note that the two files have different encoding and file sizes, but the text content is identical. So what's the reason? How do you compare such a source file? First to explain why the content is the same but the file size is different, the root cause of this problem is the different operating systems of the next car (carriage Return-CR) newline (line Feed-LF) processing different: Windows uses CR+LF to represent the end of a row; UNIX, Mac OS X uses LF to denote the end of a line; Mac OS to Mac OS9 uses CR to represent the end of a line. Tip: For more information, please refer toNew LineThat is to say, the same multiline text, stored in Windows under the text file will be larger than other operating systems (such as LINUX,MAC) file size, how much? The number of lines in a file is as large as the number of bytes. Take the above example, there are 9 lines in the file, so the files under Windows are 9 bytes larger than the files under Linux. Knowing the reason, how should we use BC to compare files from different operating systems? There are three rules for comparison under BC: 1. CRC2. Binary 3. Based on the rules, an article like this is a good way to explain the problem.Files is the same, but Beyond Compare Says they is DifferentYou can compare such a document with this two-part setup: 1. Find session--session settings
2. Under "Compare" tab, select "Rule based comparison"
This article is from the "ideal and Reality" blog, please be sure to keep this source http://lirui.blog.51cto.com/2336974/793300
"Go" uses Beyondcompare to compare files under folders when the same file content is displayed but is not the same