diff options
Diffstat (limited to 'libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp')
-rw-r--r-- | libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp index 2bf60aa9d34..24d130cd8ea 100644 --- a/libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp +++ b/libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/overflow.pass.cpp @@ -16,6 +16,8 @@ #include <fstream> #include <cassert> +#include "../../../../platform_support.h" // locale name macros + template <class CharT> struct test_buf : public std::basic_filebuf<CharT> @@ -115,7 +117,7 @@ int main() std::remove("overflow.dat"); { test_buf<wchar_t> f; - f.pubimbue(std::locale("en_US.UTF-8")); + f.pubimbue(std::locale(LOCALE_en_US_UTF_8)); assert(f.open("overflow.dat", std::ios_base::out) != 0); assert(f.sputc(0x4E51) == 0x4E51); assert(f.sputc(0x4E52) == 0x4E52); |