Set LC_COLLATE rather than LANG to override collation.
On a system with LC_COLLATE=C, this takes precedence over a non-C LANG the test tries to impose and the test fails. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@251131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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*>("LANG=" LOCALE_en_US_UTF_8));
|
||||
putenv(const_cast<char*>("LC_COLLATE=" LOCALE_en_US_UTF_8));
|
||||
{
|
||||
std::locale l(LOCALE_en_US_UTF_8);
|
||||
{
|
||||
|
Reference in New Issue
Block a user