summaryrefslogtreecommitdiff
path: root/net/ncftp2/patches/patch-aa
blob: 6227ca32a60379e04f0205623735ac16a68afb61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- Main.c.orig	Fri Oct 18 07:01:58 1996
+++ Main.c	Fri Feb 20 14:46:28 1998
@@ -22,6 +22,9 @@
 #include <pwd.h>
 #include <errno.h>
 #include <ctype.h>
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+#include <locale.h>
+#endif
 #include <signal.h>
 #include <setjmp.h>
 #include <stdlib.h>
@@ -866,6 +869,9 @@
 	int opt, result;
 	OpenOptions openopt;
 
+#ifdef __FreeBSD__
+	setlocale(LC_ALL, "");
+#endif
 	Init();
 	RunStartupScript();