Fix locales used in re tests.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@140265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Chisnall
2011-09-21 17:38:03 +00:00
parent 2fb1a9d1e8
commit 9e02b90405
5 changed files with 13 additions and 13 deletions

View File

@@ -25,10 +25,10 @@ int main()
assert(t2.getloc().name() == "C");
}
{
std::locale::global(std::locale("en_US"));
std::locale::global(std::locale("en_US.UTF-8"));
std::regex_traits<char> t1;
assert(t1.getloc().name() == "en_US");
assert(t1.getloc().name() == "en_US.UTF-8");
std::regex_traits<wchar_t> t2;
assert(t2.getloc().name() == "en_US");
assert(t2.getloc().name() == "en_US.UTF-8");
}
}