From 33a30f4159ba82ec90188be9e9e1431e62780c0f Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 3 Oct 2011 15:23:59 +0000 Subject: Windows porting work by Ruben Van Boxem llvm-svn: 141003 --- .../input.output/iostream.format/ext.manip/get_money.pass.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libcxx/test/input.output/iostream.format/ext.manip/get_money.pass.cpp') diff --git a/libcxx/test/input.output/iostream.format/ext.manip/get_money.pass.cpp b/libcxx/test/input.output/iostream.format/ext.manip/get_money.pass.cpp index 8230fe92760..297319c1546 100644 --- a/libcxx/test/input.output/iostream.format/ext.manip/get_money.pass.cpp +++ b/libcxx/test/input.output/iostream.format/ext.manip/get_money.pass.cpp @@ -14,6 +14,8 @@ #include #include +#include "../../../platform_support.h" // locale name macros + template struct testbuf : public std::basic_streambuf @@ -39,7 +41,7 @@ int main() { testbuf sb(" -$1,234,567.89"); std::istream is(&sb); - is.imbue(std::locale("en_US.UTF-8")); + is.imbue(std::locale(LOCALE_en_US_UTF_8)); long double x = 0; is >> std::get_money(x, false); assert(x == -123456789); @@ -47,7 +49,7 @@ int main() { testbuf sb(" -USD 1,234,567.89"); std::istream is(&sb); - is.imbue(std::locale("en_US.UTF-8")); + is.imbue(std::locale(LOCALE_en_US_UTF_8)); long double x = 0; is >> std::get_money(x, true); assert(x == -123456789); @@ -55,7 +57,7 @@ int main() { testbuf sb(L" -$1,234,567.89"); std::wistream is(&sb); - is.imbue(std::locale("en_US.UTF-8")); + is.imbue(std::locale(LOCALE_en_US_UTF_8)); long double x = 0; is >> std::get_money(x, false); assert(x == -123456789); @@ -63,7 +65,7 @@ int main() { testbuf sb(L" -USD 1,234,567.89"); std::wistream is(&sb); - is.imbue(std::locale("en_US.UTF-8")); + is.imbue(std::locale(LOCALE_en_US_UTF_8)); long double x = 0; is >> std::get_money(x, true); assert(x == -123456789); -- cgit v1.2.3