19 std::string u8_str =
"fs_tests_₿_🏃";
20 std::u8string str8{
u8"fs_tests_₿_🏃"};
34 std::string invalid_u8_str =
"\xf0";
36 BOOST_CHECK_EQUAL(fs::PathToString(fs::PathFromString(invalid_u8_str)), invalid_u8_str);
49 fs::path tmpfolder = m_args.GetDataDirBase();
51 fs::path tmpfile1 = tmpfolder / fs::u8path(
"fs_tests_₿_🏃");
52 fs::path tmpfile2 = tmpfolder / fs::path(
u8"fs_tests_₿_🏃");
54 std::ofstream file{tmpfile1.std_path()};
58 std::ifstream file{tmpfile2.std_path()};
59 std::string input_buffer;
64 std::ifstream file{tmpfile1.std_path(), std::ios_base::in | std::ios_base::ate};
65 std::string input_buffer;
70 std::ofstream file{tmpfile2.std_path(), std::ios_base::out | std::ios_base::app};
74 std::ifstream file{tmpfile1.std_path()};
75 std::string input_buffer;
80 std::ofstream file{tmpfile2.std_path(), std::ios_base::out | std::ios_base::trunc};
84 std::ifstream file{tmpfile1.std_path()};
85 std::string input_buffer;
110 const fs::path tmpfolder{m_args.GetDataDirBase()};
112 const fs::path path1{tmpfolder /
"a"};
113 const fs::path path2{tmpfolder /
"b"};
115 const std::string path1_contents{
"1111"};
116 const std::string path2_contents{
"2222"};
119 std::ofstream file{path1.std_path()};
120 file << path1_contents;
124 std::ofstream file{path2.std_path()};
125 file << path2_contents;
134 std::ifstream file{path2.std_path()};
135 std::string contents;