diff options
Diffstat (limited to 'editors/diff.c')
-rw-r--r-- | editors/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/diff.c b/editors/diff.c index e977f4d..745ef0a 100644 --- a/editors/diff.c +++ b/editors/diff.c @@ -749,7 +749,7 @@ static int asciifile(FILE *f) rewind(f); cnt = fread(g_read_buf, 1, COMMON_BUFSIZE, f); for (i = 0; i < cnt; i++) { - if (!isprint(g_read_buf[i]) + if (!isprint_asciionly(g_read_buf[i]) && !isspace(g_read_buf[i]) ) { return 0; |