Skip to content

Commit abfd303

Browse files
committed
merge bitcoin#24469: Correctly decode UTF-8 literal string paths
1 parent fc96190 commit abfd303

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/fs_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ BOOST_AUTO_TEST_CASE(fsbridge_fstream)
4646
{
4747
fs::path tmpfolder = m_args.GetDataDirBase();
4848
// tmpfile1 should be the same as tmpfile2
49-
fs::path tmpfile1 = tmpfolder / "fs_tests_∋_🏃";
50-
fs::path tmpfile2 = tmpfolder / "fs_tests_∋_🏃";
49+
fs::path tmpfile1 = tmpfolder / fs::u8path("fs_tests_∋_🏃");
50+
fs::path tmpfile2 = tmpfolder / fs::u8path("fs_tests_∋_🏃");
5151
{
5252
std::ofstream file{tmpfile1};
5353
file << "bitcoin";
@@ -101,7 +101,7 @@ BOOST_AUTO_TEST_CASE(fsbridge_fstream)
101101
}
102102
{
103103
// Join an absolute path and a relative path.
104-
fs::path p = fsbridge::AbsPathJoin(tmpfolder, "fs_tests_∋_🏃");
104+
fs::path p = fsbridge::AbsPathJoin(tmpfolder, fs::u8path("fs_tests_∋_🏃"));
105105
BOOST_CHECK(p.is_absolute());
106106
BOOST_CHECK_EQUAL(tmpfile1, p);
107107
}

0 commit comments

Comments
 (0)