summaryrefslogtreecommitdiffstats
path: root/libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2011-09-21 14:59:10 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2011-09-21 14:59:10 +0000
commit71850c961d86d1cb657a83b98241ee5c35cda21c (patch)
treec7662d3345a878ed64f40a4b40aeac089887906b /libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp
parentb25f615c588edb959545f551a25e168aafacfbfa (diff)
downloadbcm5719-llvm-71850c961d86d1cb657a83b98241ee5c35cda21c.tar.gz
bcm5719-llvm-71850c961d86d1cb657a83b98241ee5c35cda21c.zip
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.
llvm-svn: 140252
Diffstat (limited to 'libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp')
-rw-r--r--libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp b/libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp
index 46bd1b709a3..0b06818957e 100644
--- a/libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp
+++ b/libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp
@@ -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);
OpenPOWER on IntegriCloud