summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-01-07 02:36:09 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-01-07 02:36:09 +0000
commit812d65a26a3377ee18fa9b61b8c69fe7468bf400 (patch)
treedfdd8e13c42b268b113f095a5e3b16b1f9de0e35 /libcxx/test/std
parent76c0063eeb592de2bebfd544ab460734e045b03b (diff)
downloadbcm5719-llvm-812d65a26a3377ee18fa9b61b8c69fe7468bf400.tar.gz
bcm5719-llvm-812d65a26a3377ee18fa9b61b8c69fe7468bf400.zip
[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
Diffstat (limited to 'libcxx/test/std')
-rw-r--r--libcxx/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp b/libcxx/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp
index 04cc060ad98..d31705e5ad1 100644
--- a/libcxx/test/std/localization/locale.categories/category.collate/locale.collate.byname/transform.pass.cpp
+++ b/libcxx/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<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);
{
OpenPOWER on IntegriCloud