diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/diff.c | 2 | ||||
-rw-r--r-- | editors/vi.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editors/diff.c b/editors/diff.c index e977f4d14..745ef0a33 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -749,7 +749,7 @@ static int asciifile(FILE *f) | |||
749 | rewind(f); | 749 | rewind(f); |
750 | cnt = fread(g_read_buf, 1, COMMON_BUFSIZE, f); | 750 | cnt = fread(g_read_buf, 1, COMMON_BUFSIZE, f); |
751 | for (i = 0; i < cnt; i++) { | 751 | for (i = 0; i < cnt; i++) { |
752 | if (!isprint(g_read_buf[i]) | 752 | if (!isprint_asciionly(g_read_buf[i]) |
753 | && !isspace(g_read_buf[i]) | 753 | && !isspace(g_read_buf[i]) |
754 | ) { | 754 | ) { |
755 | return 0; | 755 | return 0; |
diff --git a/editors/vi.c b/editors/vi.c index 6a6722875..7d83db642 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -30,9 +30,9 @@ | |||
30 | #if ENABLE_LOCALE_SUPPORT | 30 | #if ENABLE_LOCALE_SUPPORT |
31 | 31 | ||
32 | #if ENABLE_FEATURE_VI_8BIT | 32 | #if ENABLE_FEATURE_VI_8BIT |
33 | #define Isprint(c) isprint(c) | 33 | # define Isprint(c) isprint(c) |
34 | #else | 34 | #else |
35 | #define Isprint(c) (isprint(c) && (unsigned char)(c) < 0x7f) | 35 | # define Isprint(c) (isprint(c) && (unsigned char)(c) < 0x7f) |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #else | 38 | #else |