More fixes to the tests. Add UTF-8 encoding to all locales that don't specify one. Undefine some stdio.h macros that break the tests.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@140252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,7 +34,7 @@ void f1(std::ios_base::event ev, std::ios_base& stream, int index)
|
||||
{
|
||||
if (ev == std::ios_base::imbue_event)
|
||||
{
|
||||
assert(stream.getloc().name() == "en_US");
|
||||
assert(stream.getloc().name() == "en_US.UTF-8");
|
||||
assert(index == 4);
|
||||
++f1_called;
|
||||
}
|
||||
@@ -47,6 +47,6 @@ int main()
|
||||
b.register_callback(f1, 4);
|
||||
b.register_callback(f1, 4);
|
||||
b.register_callback(f1, 4);
|
||||
std::locale l = b.imbue(std::locale("en_US"));
|
||||
std::locale l = b.imbue(std::locale("en_US.UTF-8"));
|
||||
assert(f1_called == 3);
|
||||
}
|
||||
|
Reference in New Issue
Block a user