[libc++] [test] Recommit the unsetting of LC_COLLATE in the builder script.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Fri, 30 Apr 2021 18:43:33 +0000 (14:43 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Fri, 30 Apr 2021 18:49:10 +0000 (14:49 -0400)
commitc92cdb48788115e093e29143d0bdf9fca32d1f61
tree97b59247f97699b576ba02d1edcad03e6114cc1f
parent54aad6365951247e9f18c718c14422745b3afa4c
[libc++] [test] Recommit the unsetting of LC_COLLATE in the builder script.

This re-reverts one piece of 1b885573327d0f6b36f24ad23d243642f658750b,
reapplying one piece of D101437 (but not the "service"-queue piece of it).

It turns out that the behavior of `grep [^ -~]`, or even `grep [A-Z]`,
depends on locale, specifically `LC_COLLATE`. So we want to make sure
we're not in any weird locale, no matter what machine we're running on.
Yes, "en_US.UTF-8" counts as weird!
https://stackoverflow.com/questions/67320156/misbehavior-of-gnu-grep-when-grepping-for-ignores-spaces
https://stackoverflow.com/questions/6799872/how-to-make-grep-a-z-independent-of-locale
libcxx/utils/ci/run-buildbot