Change locale to LC_ALL, there is no bitmask
This commit is contained in:
parent
ddfbe6be8d
commit
d1b2ad1a54
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11811
@ -135,7 +135,7 @@ main(argc, argv)
|
||||
int ch, envargc, argcnt;
|
||||
char *envargv[3];
|
||||
|
||||
(void) setlocale(LC_TIME|LC_CTYPE, "");
|
||||
(void) setlocale(LC_ALL, "");
|
||||
|
||||
/* remove this line to get remote host */
|
||||
oflag = 1; /* default to old "office" behavior */
|
||||
|
@ -131,7 +131,7 @@ main(argc, argv)
|
||||
char *memf, *nlistf, *p, *vis_args, *x;
|
||||
char buf[MAXHOSTNAMELEN], errbuf[256];
|
||||
|
||||
(void) setlocale(LC_TIME|LC_CTYPE, "");
|
||||
(void) setlocale(LC_ALL, "");
|
||||
|
||||
/* Are we w(1) or uptime(1)? */
|
||||
p = __progname;
|
||||
|
Loading…
Reference in New Issue
Block a user