summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-26 22:58:56 +0000
committerache <ache@FreeBSD.org>1995-10-26 22:58:56 +0000
commit98cf39b81a671fc71fc5c715305c44ddbfc77a24 (patch)
tree35b1bee9bcd92b4aa054bc34a913a24d9bec7301
parent9c823fd04af406bbd79e67c0bcd4b939f4658a74 (diff)
downloadFreeBSD-src-98cf39b81a671fc71fc5c715305c44ddbfc77a24.zip
FreeBSD-src-98cf39b81a671fc71fc5c715305c44ddbfc77a24.tar.gz
Add setlocale LC_TIME
-rw-r--r--usr.bin/ncftp/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c
index 80b5015..55f0eb0 100644
--- a/usr.bin/ncftp/main.c
+++ b/usr.bin/ncftp/main.c
@@ -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);
OpenPOWER on IntegriCloud