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:
@@ -51,7 +51,7 @@ int main()
|
||||
{
|
||||
testbuf<char> sb;
|
||||
std::ostream os(&sb);
|
||||
os.imbue(std::locale("en_US"));
|
||||
os.imbue(std::locale("en_US.UTF-8"));
|
||||
showbase(os);
|
||||
long double x = -123456789;
|
||||
os << std::put_money(x, false);
|
||||
@@ -60,7 +60,7 @@ int main()
|
||||
{
|
||||
testbuf<char> sb;
|
||||
std::ostream os(&sb);
|
||||
os.imbue(std::locale("en_US"));
|
||||
os.imbue(std::locale("en_US.UTF-8"));
|
||||
showbase(os);
|
||||
long double x = -123456789;
|
||||
os << std::put_money(x, true);
|
||||
@@ -69,7 +69,7 @@ int main()
|
||||
{
|
||||
testbuf<wchar_t> sb;
|
||||
std::wostream os(&sb);
|
||||
os.imbue(std::locale("en_US"));
|
||||
os.imbue(std::locale("en_US.UTF-8"));
|
||||
showbase(os);
|
||||
long double x = -123456789;
|
||||
os << std::put_money(x, false);
|
||||
@@ -78,7 +78,7 @@ int main()
|
||||
{
|
||||
testbuf<wchar_t> sb;
|
||||
std::wostream os(&sb);
|
||||
os.imbue(std::locale("en_US"));
|
||||
os.imbue(std::locale("en_US.UTF-8"));
|
||||
showbase(os);
|
||||
long double x = -123456789;
|
||||
os << std::put_money(x, true);
|
||||
|
Reference in New Issue
Block a user