mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
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:
parent
7ae8ce5df1
commit
f58b94cba4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132008
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user