From 52eae5c050bfa3c6af4f19d504e05b55f08c58be Mon Sep 17 00:00:00 2001 From: tjr Date: Mon, 12 Jul 2004 04:18:44 +0000 Subject: [PATCH] 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. --- usr.bin/xargs/xargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index 227d9f52332a..c30934a7f289 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