diff options
author | ache <ache@FreeBSD.org> | 1997-06-27 09:30:15 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-06-27 09:30:15 +0000 |
commit | fae8900137945449327d19f5b8d519086f5a6033 (patch) | |
tree | 6b4f5813e991617051d4890b73f6b95d008a5772 /usr.bin/ftp/main.c | |
parent | 6d60ffd86ab763b4c8b04ee0a43cf1c9fa7be893 (diff) | |
download | FreeBSD-src-fae8900137945449327d19f5b8d519086f5a6033.zip FreeBSD-src-fae8900137945449327d19f5b8d519086f5a6033.tar.gz |
Localize it (ctype)
8bit ctype clean fixes
(I can't input 8bit chars otherwise in this new ftp, it beeps)
Diffstat (limited to 'usr.bin/ftp/main.c')
-rw-r--r-- | usr.bin/ftp/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 1705021..a7f2e56 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: main.c,v 1.13 1997/06/25 08:56:42 msmith Exp $ */ /* $NetBSD: main.c,v 1.22 1997/06/10 07:04:43 lukem Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: main.c,v 1.13 1997/06/25 08:56:42 msmith Exp $"; #endif #endif /* not lint */ @@ -55,6 +55,7 @@ static char rcsid[] = "$Id$"; #include <sys/socket.h> #include <err.h> +#include <locale.h> #include <netdb.h> #include <pwd.h> #include <stdio.h> @@ -75,6 +76,8 @@ main(argc, argv) char *cp, homedir[MAXPATHLEN]; int dumbterm; + (void) setlocale(LC_CTYPE, ""); + sp = getservbyname("ftp", "tcp"); if (sp == 0) ftpport = htons(FTP_PORT); /* good fallback */ |