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:
Tim J. Robbins 2004-07-12 04:18:44 +00:00
parent 7ae8ce5df1
commit f58b94cba4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132008

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