diff options
author | ache <ache@FreeBSD.org> | 1995-10-24 04:18:45 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-24 04:18:45 +0000 |
commit | afeabfa14344294df80b2f4e5f130aee047d13ed (patch) | |
tree | c9ffd2d2c147369880f337a0d61a12b926816ad5 /usr.bin/finger | |
parent | 4f25f985420d77c9ec23e93a2c2fb11fb9a1b074 (diff) | |
download | FreeBSD-src-afeabfa14344294df80b2f4e5f130aee047d13ed.zip FreeBSD-src-afeabfa14344294df80b2f4e5f130aee047d13ed.tar.gz |
Add setlocale LC_TIME|LC_CTYPE
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/finger.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c index bae5fe7..5b5daa50 100644 --- a/usr.bin/finger/finger.c +++ b/usr.bin/finger/finger.c @@ -78,6 +78,7 @@ static char sccsid[] = "@(#)finger.c 8.2 (Berkeley) 9/30/93"; #include <stdlib.h> #include <string.h> #include <db.h> +#include <locale.h> #include "finger.h" DB *db; @@ -134,6 +135,8 @@ main(argc, argv) int ch, envargc, argcnt; char *envargv[3]; + (void) setlocale(LC_TIME|LC_CTYPE, ""); + /* remove this line to get remote host */ oflag = 1; /* default to old "office" behavior */ |