summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/finger.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/finger/finger.c')
-rw-r--r--usr.bin/finger/finger.c3
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 */
OpenPOWER on IntegriCloud