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
45c9fe9da7
commit
52eae5c050
@ -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