From 25037cf729801dfc0afd463895499268f1bb6b54 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Fri, 23 Oct 2015 17:56:08 +0000 Subject: [PATCH] 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 --- .../category.collate/locale.collate.byname/transform.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp b/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp index 89714123..04cc060a 100644 --- a/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp +++ b/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp @@ -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("LANG=" LOCALE_en_US_UTF_8)); + putenv(const_cast("LC_COLLATE=" LOCALE_en_US_UTF_8)); { std::locale l(LOCALE_en_US_UTF_8); {