file_stdio supports unicode paths:

fix #793, close #1791, close #1793
This commit is contained in:
Mika Fischer authored and Vinnie Falco committed 2019-12-29 08:58:13 -08:00
1 parent f0c92f472c
commit dfb44236e9
4 files changed
+42 -8

No files matched your search

+4
View File
@@ -26,7 +26,11 @@ public:
void
run()
{
#ifdef BOOST_MSVC
test_file<file_stdio, true>();
#else
test_file<file_stdio>();
#endif
}
};
+1 -1
View File
@@ -40,7 +40,7 @@ test_file()
#ifdef _WIN32
boost::winapi::WCHAR_ unicode_suffix[] = { 0xd83e, 0xdd84, 0x0000 }; // UTF-16-LE unicorn
#else
char unicode_suffix[] = { 0xf0, 0x9f, 0xa6, 0x84, 0x00 }; // UTF-8 unicorn
char unicode_suffix[] = { '\xf0', '\x9f', '\xa6', '\x84', '\x00' }; // UTF-8 unicorn
#endif
class temp_path