From 9905307e999e5bdee5347ef5b42a768d92457fa6 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 28 Dec 1995 13:43:40 +0000 Subject: Localize it --- usr.bin/strings/strings.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/strings/strings.c') diff --git a/usr.bin/strings/strings.c b/usr.bin/strings/strings.c index 435e134..af33b5e 100644 --- a/usr.bin/strings/strings.c +++ b/usr.bin/strings/strings.c @@ -47,13 +47,14 @@ static char sccsid[] = "@(#)strings.c 8.2 (Berkeley) 1/28/94"; #include #include #include +#include #include #include #include #include #define DEF_LEN 4 /* default minimum string length */ -#define ISSTR(ch) (isascii(ch) && (isprint(ch) || ch == '\t')) +#define ISSTR(ch) (isalnum(ch) || ispunct(ch) || isascii(ch) && isprint(ch) || ch == '\t') typedef struct exec EXEC; /* struct exec cast */ @@ -79,6 +80,8 @@ main(argc, argv) u_char *bfr; char *file, *p; + (void) setlocale(LC_CTYPE, ""); + /* * for backward compatibility, allow '-' to specify 'a' flag; no * longer documented in the man page or usage string. -- cgit v1.1