Add setlocale LC_TIME

This commit is contained in:
Andrey A. Chernov 1995-10-26 22:58:56 +00:00
parent 9f23763a01
commit 3fb8ee222b

View File

@ -16,6 +16,9 @@
#include <ctype.h>
#include <netdb.h>
#include <pwd.h>
#ifdef __FreeBSD__
#include <locale.h>
#endif
#ifdef SYSLOG
# include <syslog.h>
@ -142,6 +145,10 @@ void main(int argc, char **argv)
string tmp, oline;
struct servent *sptr;
#ifdef __FreeBSD__
(void) setlocale(LC_TIME, "");
#endif
if ((cp = rindex(argv[0], '/'))) cp++;
else cp = argv[0];
(void) Strncpy(progname, cp);