summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/localization
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2015-10-23 17:56:08 +0000
committerTim Northover <tnorthover@apple.com>2015-10-23 17:56:08 +0000
commita745ddd9a749485e00e371c9be5b1788674a4813 (patch)
tree32caab41283a86207705f0c9a25adb3d14e89180 /libcxx/test/std/localization
parenta3cebaf5e996c1989531e7d9c8b4827ece7130af (diff)
downloadbcm5719-llvm-a745ddd9a749485e00e371c9be5b1788674a4813.tar.gz
bcm5719-llvm-a745ddd9a749485e00e371c9be5b1788674a4813.zip
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. llvm-svn: 251131
Diffstat (limited to 'libcxx/test/std/localization')
-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 897141235cf..04cc060ad98 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*>("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);
{
OpenPOWER on IntegriCloud