diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-01-07 02:36:09 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-01-07 02:36:09 +0000 |
commit | 812d65a26a3377ee18fa9b61b8c69fe7468bf400 (patch) | |
tree | dfdd8e13c42b268b113f095a5e3b16b1f9de0e35 /libcxx/test/std | |
parent | 76c0063eeb592de2bebfd544ab460734e045b03b (diff) | |
download | bcm5719-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.cpp | 2 |
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); { |