summaryrefslogtreecommitdiffstats
path: root/usr.bin/split
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-11 14:44:23 +0000
committertjr <tjr@FreeBSD.org>2004-07-11 14:44:23 +0000
commit53407e80871f5d175df1521b928026e32d72f1fc (patch)
tree0c759429816eb887b2065c2b5dd122b3dd7e5e73 /usr.bin/split
parent87af04ca9a197a3c05764a4adc3294db472879fe (diff)
downloadFreeBSD-src-53407e80871f5d175df1521b928026e32d72f1fc.zip
FreeBSD-src-53407e80871f5d175df1521b928026e32d72f1fc.tar.gz
Respect locale settings from the environment.
Diffstat (limited to 'usr.bin/split')
-rw-r--r--usr.bin/split/split.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c
index c49a1de..ca3847c 100644
--- a/usr.bin/split/split.c
+++ b/usr.bin/split/split.c
@@ -52,6 +52,7 @@ static const char sccsid[] = "@(#)split.c 8.2 (Berkeley) 4/16/94";
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
+#include <locale.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@ -85,6 +86,8 @@ main(int argc, char **argv)
int ch;
char *ep, *p;
+ setlocale(LC_ALL, "");
+
while ((ch = getopt(argc, argv, "-0123456789a:b:l:p:")) != -1)
switch (ch) {
case '0': case '1': case '2': case '3': case '4':
OpenPOWER on IntegriCloud