OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b74d05d
)
Fix directory diff code.
author
Dennis Lim
<dlkj@users.sourceforge.net>
Wed, 20 Jun 2001 15:46:46 +0000
(15:46 +0000)
committer
Dennis Lim
<dlkj@users.sourceforge.net>
Wed, 20 Jun 2001 15:46:46 +0000
(15:46 +0000)
FileIsBinary now is consistant with binary_file_p
Src/Diff.cpp
patch
|
blob
|
history
diff --git
a/Src/Diff.cpp
b/Src/Diff.cpp
index
68289ad
..
e3baa7b
100644
(file)
--- a/
Src/Diff.cpp
+++ b/
Src/Diff.cpp
@@
-133,8
+133,8
@@
int FileIsBinary(int fd)
{
for (register int i=0; i < cnt; i++)
{
- if (buf[i] == 0
-
|| (!isprint(buf[i]) && !isspace(buf[i])))
+ if (buf[i] == 0
)
+
//
|| (!isprint(buf[i]) && !isspace(buf[i])))
{
bResult=1;
break;
@@
-151,8
+151,8
@@
int FileIsBinary(int fd)
{
for (register int i=0; i < cnt; i++)
{
- if (buf[i] == 0
-
|| (!isprint(buf[i]) && !isspace(buf[i])))
+ if (buf[i] == 0
)
+
//
|| (!isprint(buf[i]) && !isspace(buf[i])))
{
bResult=1;
break;