The fsbridge::get_filesystem_error_message()
function exhibits several drawbacks:
-
It was introduced in #14192 to account for platform-specific variations in
boost::filesystem::filesystem_error::what()
. Since migrating tostd::filesystem
, those discrepancies no longer exist. -
It fails to display UTF-8 paths correctly on Windows:
0> build\bin\Release\bitcoind.exe -datadir="C:\Users\hebasto\dd_₿_🏃" -regtest
1...
22025-04-30T00:17:48Z DeleteAuthCookie: Unable to remove random auth cookie file: remove: Access is denied.: "C:\Users\hebasto\dd_?_??\regtest\.cookie"
3...
- It relies on
std::wstring_convert
, which was deprecated in C++17 and removed in C++26 (also see #32361).
This PR removes the obsolete fsbridge::get_filesystem_error_message()
function, thereby resolving all of the above issues.