summaryrefslogtreecommitdiffstats
path: root/libcxx/test/input.output/iostream.format/ext.manip/put_money.pass.cpp
diff options
context:
space:
mode:
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.cpp10
1 files changed, 6 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 0b06818957e..e6d3d3891fc 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
@@ -14,6 +14,8 @@
#include <iomanip>
#include <cassert>
+#include "../../../platform_support.h" // locale name macros
+
template <class CharT>
class testbuf
: public std::basic_streambuf<CharT>
@@ -51,7 +53,7 @@ int main()
{
testbuf<char> sb;
std::ostream os(&sb);
- os.imbue(std::locale("en_US.UTF-8"));
+ os.imbue(std::locale(LOCALE_en_US_UTF_8));
showbase(os);
long double x = -123456789;
os << std::put_money(x, false);
@@ -60,7 +62,7 @@ int main()
{
testbuf<char> sb;
std::ostream os(&sb);
- os.imbue(std::locale("en_US.UTF-8"));
+ os.imbue(std::locale(LOCALE_en_US_UTF_8));
showbase(os);
long double x = -123456789;
os << std::put_money(x, true);
@@ -69,7 +71,7 @@ int main()
{
testbuf<wchar_t> sb;
std::wostream os(&sb);
- os.imbue(std::locale("en_US.UTF-8"));
+ os.imbue(std::locale(LOCALE_en_US_UTF_8));
showbase(os);
long double x = -123456789;
os << std::put_money(x, false);
@@ -78,7 +80,7 @@ int main()
{
testbuf<wchar_t> sb;
std::wostream os(&sb);
- os.imbue(std::locale("en_US.UTF-8"));
+ os.imbue(std::locale(LOCALE_en_US_UTF_8));
showbase(os);
long double x = -123456789;
os << std::put_money(x, true);
OpenPOWER on IntegriCloud