summaryrefslogtreecommitdiffstats
path: root/source/n/netkit-ftp/patches/06-netkit-ftp-locale.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/netkit-ftp/patches/06-netkit-ftp-locale.patch')
-rw-r--r--source/n/netkit-ftp/patches/06-netkit-ftp-locale.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/n/netkit-ftp/patches/06-netkit-ftp-locale.patch b/source/n/netkit-ftp/patches/06-netkit-ftp-locale.patch
new file mode 100644
index 000000000..ed6e28a0b
--- /dev/null
+++ b/source/n/netkit-ftp/patches/06-netkit-ftp-locale.patch
@@ -0,0 +1,18 @@
+--- netkit-ftp-0.17/ftp/main.c.locale 2004-12-15 16:52:14.504193752 +0000
++++ netkit-ftp-0.17/ftp/main.c 2004-12-15 16:52:51.719133655 +0000
+@@ -51,6 +51,7 @@
+
+ /* #include <arpa/ftp.h> <--- unused? */
+
++#include <locale.h>
+ #include <signal.h>
+ #include <unistd.h>
+ #include <string.h>
+@@ -109,6 +110,7 @@
+
+ tick = 0;
+
++ setlocale (LC_ALL, "");
+ sp = getservbyname("ftp", "tcp");
+ if (sp == 0) {
+ fprintf(stderr, "ftp: ftp/tcp: unknown service\n");