[libcxx] Set LC_ALL rather than LC_COLLATE to override collation.

r251131 replaced LANG with LC_COLLATE. But LC_ALL has precedence
over both, so the test still fails when LC_ALL=C.

llvm-svn: 257018
This commit is contained in:
Ahmed Bougacha 2016-01-07 02:36:09 +00:00
parent 76c0063eeb
commit 812d65a26a
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
int main()
{
// Ensure that the default locale is not C. If it is, the second tests will fail.
putenv(const_cast<char*>("LC_COLLATE=" LOCALE_en_US_UTF_8));
putenv(const_cast<char*>("LC_ALL=" LOCALE_en_US_UTF_8));
{
std::locale l(LOCALE_en_US_UTF_8);
{