aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/col/col.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-10-24 06:15:05 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-10-24 06:15:05 +0000
commit8bbd90727373467dcce77571238fceb192af0747 (patch)
tree147c87756e389845b1e02d3c5cf4a298da58c22f /usr.bin/col/col.c
parent628b3a7935bbf9fb4ed18ef9f03f3533f0141cb1 (diff)
downloadsrc-8bbd90727373467dcce77571238fceb192af0747.tar.gz
src-8bbd90727373467dcce77571238fceb192af0747.zip
Add setlocale LC_CTYPE
Notes
Notes: svn path=/head/; revision=11765
Diffstat (limited to 'usr.bin/col/col.c')
-rw-r--r--usr.bin/col/col.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c
index 719fef798c2f..37dc3045c48b 100644
--- a/usr.bin/col/col.c
+++ b/usr.bin/col/col.c
@@ -49,6 +49,7 @@ static char sccsid[] = "@(#)col.c 8.3 (Berkeley) 4/2/94";
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include <locale.h>
#define BS '\b' /* backspace */
#define TAB '\t' /* tab */
@@ -128,6 +129,8 @@ main(argc, argv)
int nflushd_lines; /* number of lines that were flushed */
int adjust, opt, warned;
+ (void) setlocale(LC_CTYPE, "");
+
max_bufd_lines = 128;
compress_spaces = 1; /* compress spaces into tabs */
while ((opt = getopt(argc, argv, "bfhl:x")) != EOF)