File feathercoin-boost.patch of Package feathercoin
--- src/fs.cpp 2022-10-30 11:22:37.401057407 +0100
+++ src/fs.cpp 2022-10-30 12:14:28.026490823 +0100
@@ -208,7 +208,11 @@
}
#else // __GLIBCXX__
+#if BOOST_VERSION >= 107700
+static_assert(sizeof(*BOOST_FILESYSTEM_C_STR(fs::path())) == sizeof(wchar_t),
+#else
static_assert(sizeof(*fs::path().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t),
+#endif // BOOST_VERSION >= 107700
"Warning: This build is using boost::filesystem ofstream and ifstream "
"implementations which will fail to open paths containing multibyte "
"characters. You should delete this static_assert to ignore this warning, "
--- src/wallet/test/db_tests.cpp 2022-10-30 11:22:37.449057119 +0100
+++ src/wallet/test/db_tests.cpp 2022-10-30 12:11:44.847556559 +0100
@@ -18,7 +18,11 @@
std::string test_name = "test_name.dat";
const fs::path datadir = GetDataDir();
fs::path file_path = datadir / test_name;
+#if BOOST_VERSION >= 107700
+ std::ofstream f(BOOST_FILESYSTEM_C_STR(file_path));
+#else
std::ofstream f(file_path.BOOST_FILESYSTEM_C_STR);
+#endif // BOOST_VERSION >= 107700
f.close();
std::string filename;
--- src/wallet/test/init_test_fixture.cpp 2022-10-30 11:22:37.449057119 +0100
+++ src/wallet/test/init_test_fixture.cpp 2022-10-30 12:12:38.155152926 +0100
@@ -30,7 +30,11 @@
fs::create_directories(m_walletdir_path_cases["default"]);
fs::create_directories(m_walletdir_path_cases["custom"]);
fs::create_directories(m_walletdir_path_cases["relative"]);
+#if BOOST_VERSION >= 107700
+ std::ofstream f(BOOST_FILESYSTEM_C_STR(m_walletdir_path_cases["file"]));
+#else
std::ofstream f(m_walletdir_path_cases["file"].BOOST_FILESYSTEM_C_STR);
+#endif // BOOST_VERSION >= 107700
f.close();
}