mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Localize it
This commit is contained in:
parent
7217e99c8f
commit
9f3ececf05
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13076
1 changed files with 4 additions and 1 deletions
|
@ -47,13 +47,14 @@ static char sccsid[] = "@(#)strings.c 8.2 (Berkeley) 1/28/94";
|
|||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <locale.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#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.
|
||||
|
|
Loading…
Reference in a new issue