summaryrefslogtreecommitdiffstats
path: root/usr.bin/fmt/fmt.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-24 06:15:05 +0000
committerache <ache@FreeBSD.org>1995-10-24 06:15:05 +0000
commitf30cf8615c698739b628e4fa3f1d2add3726bb9d (patch)
tree147c87756e389845b1e02d3c5cf4a298da58c22f /usr.bin/fmt/fmt.c
parent088e7a6c48cea3138698463f0cdc5da06226f27b (diff)
downloadFreeBSD-src-f30cf8615c698739b628e4fa3f1d2add3726bb9d.zip
FreeBSD-src-f30cf8615c698739b628e4fa3f1d2add3726bb9d.tar.gz
Add setlocale LC_CTYPE
Diffstat (limited to 'usr.bin/fmt/fmt.c')
-rw-r--r--usr.bin/fmt/fmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/fmt/fmt.c b/usr.bin/fmt/fmt.c
index 6d689c1..dfbdb97 100644
--- a/usr.bin/fmt/fmt.c
+++ b/usr.bin/fmt/fmt.c
@@ -43,6 +43,7 @@ static char sccsid[] = "@(#)fmt.c 8.1 (Berkeley) 7/20/93";
#include <stdio.h>
#include <ctype.h>
+#include <locale.h>
/*
* fmt -- format the concatenation of input files or standard input
@@ -84,6 +85,8 @@ main(argc, argv)
register int errs = 0;
int number; /* LIZ@UOM 6/18/85 */
+ (void) setlocale(LC_CTYPE, "");
+
goal_length = GOAL_LENGTH;
max_length = MAX_LENGTH;
setout();
OpenPOWER on IntegriCloud