blob: e17402b327da61b4896ac48a08925f6b8af07526 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Ripped from Fedora
* Wed Dec 15 2004 Tim Waugh <twaugh@redhat.com>
- Call setlocale() so that readline works correctly (bug #142265).
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=142265
--- netkit-ftp-0.17/ftp/main.c
+++ netkit-ftp-0.17/ftp/main.c
@@ -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");
|