[libcxx] r251131 - Set LC_COLLATE rather than LANG to override collation.
Tim Northover via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 23 10:56:08 PDT 2015
Author: tnorthover
Date: Fri Oct 23 12:56:08 2015
New Revision: 251131
URL: http://llvm.org/viewvc/llvm-project?rev=251131&view=rev
Log:
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.
Modified:
libcxx/trunk/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp
Modified: libcxx/trunk/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp?rev=251131&r1=251130&r2=251131&view=diff
==============================================================================
--- libcxx/trunk/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp (original)
+++ libcxx/trunk/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp Fri Oct 23 12:56:08 2015
@@ -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);
{
More information about the cfe-commits
mailing list