From 3fb8ee222bdb4563953113010e04f7505de1ffc9 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 26 Oct 1995 22:58:56 +0000 Subject: [PATCH] Add setlocale LC_TIME --- usr.bin/ncftp/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c index 80b5015816b6..55f0eb0f1450 100644 --- a/usr.bin/ncftp/main.c +++ b/usr.bin/ncftp/main.c @@ -16,6 +16,9 @@ #include #include #include +#ifdef __FreeBSD__ +#include +#endif #ifdef SYSLOG # include @@ -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);