Add setlocale LC_TIME|LC_CTYPE

This commit is contained in:
Andrey A. Chernov 1995-10-24 04:18:45 +00:00
parent f6d3b9ac8f
commit dc675fc2e7
1 changed files with 3 additions and 0 deletions

View File

@ -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 */