Encoding 奇怪的字节差异-这是不可能的吗

Encoding 奇怪的字节差异-这是不可能的吗,encoding,cygwin,Encoding,Cygwin,在cygwin中,我有两个几乎相同的文件,另一个我做了最小的修改。屏幕上的第一行是相同的。因此,我使用cmp实用程序逐字节比较这两个文件 $cat double.c #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #include <stdlib.h> static GLfloat spin = 0.0; void init(void) { glClearColo

在cygwin中,我有两个几乎相同的文件,另一个我做了最小的修改。屏幕上的第一行是相同的。因此,我使用cmp实用程序逐字节比较这两个文件

$cat double.c

#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <stdlib.h>

static GLfloat spin = 0.0;

void init(void)
{
    glClearColor(0.0,0.0,0.0,0.0);
    glShadeModel(GL_FLAT);
}
........

$cat double1.c

#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <stdlib.h>

static GLfloat spin = 0.0;

void init(void)
{
    glClearColor (0.0, 0.0, 0.0, 0.0);
    glShadeModel (GL_FLAT);
}
...........


$cmp double.c double1.c
所以

它输出以下内容:

 125  12  40
 126 173  12
 127  12 173
 128  40  12
 144  50  40
 145  60  50
 146  56  60
.........
12为新品,40为新品,173为新品{

Windows编辑器的区别如下所示

那么,这种差异是如何产生的呢?我感到困惑

双c

双1.c

这可能是某种用户错误,即使是我们中最好的人也会犯这种错误。您能将这些文件复制到单独的目录中,命名为1和2,并以可重复的方式看到这种差异吗?
$cmp -l double.c double1.c
 125  12  40
 126 173  12
 127  12 173
 128  40  12
 144  50  40
 145  60  50
 146  56  60
.........