summaryrefslogtreecommitdiffstats
path: root/usr.bin/xargs
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-12 04:18:44 +0000
committertjr <tjr@FreeBSD.org>2004-07-12 04:18:44 +0000
commit52eae5c050bfa3c6af4f19d504e05b55f08c58be (patch)
tree456f5ce2f29d3f5d5c069e8795177b23976a7476 /usr.bin/xargs
parent45c9fe9da751a37578e52b51cf2e863c1d025643 (diff)
downloadFreeBSD-src-52eae5c050bfa3c6af4f19d504e05b55f08c58be.zip
FreeBSD-src-52eae5c050bfa3c6af4f19d504e05b55f08c58be.tar.gz
Call setlocale() with category LC_ALL instead of LC_MESSAGES. We need
LC_CTYPE and LC_COLLATE to correctly interpret regular expressions returned by nl_langinfo(YESEXPR), and it doesn't hurt to include the rest.
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r--usr.bin/xargs/xargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c
index 227d9f5..c30934a 100644
--- a/usr.bin/xargs/xargs.c
+++ b/usr.bin/xargs/xargs.c
@@ -100,7 +100,7 @@ main(int argc, char *argv[])
eofstr = "";
Jflag = nflag = 0;
- (void)setlocale(LC_MESSAGES, "");
+ (void)setlocale(LC_ALL, "");
/*
* POSIX.2 limits the exec line length to ARG_MAX - 2K. Running that
OpenPOWER on IntegriCloud