diff options
author | tjr <tjr@FreeBSD.org> | 2004-07-12 04:18:44 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-07-12 04:18:44 +0000 |
commit | 52eae5c050bfa3c6af4f19d504e05b55f08c58be (patch) | |
tree | 456f5ce2f29d3f5d5c069e8795177b23976a7476 /usr.bin | |
parent | 45c9fe9da751a37578e52b51cf2e863c1d025643 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/xargs/xargs.c | 2 |
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 |