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.
This commit is contained in:
tjr 2004-07-12 04:18:44 +00:00
parent 45c9fe9da7
commit 52eae5c050

View File

@ -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