fs::path
with std::codecvt_utf8_utf16
at SetupEnvironment()
, so that default string encoding will be utf-8 inside fs::path
.
fs::path
with std::codecvt_utf8_utf16
at SetupEnvironment()
, so that default string encoding will be utf-8 inside fs::path
.
57@@ -58,6 +58,7 @@
58 #ifndef NOMINMAX
59 #define NOMINMAX
60 #endif
61+#include <codecvt>
WIN32
?
Previously applied patch detected.
Needs rebase?
61@@ -62,8 +62,6 @@
62 #include <QFontDatabase>
63 #endif
64
65-static fs::detail::utf8_codecvt_facet utf8;
Drop this because this convert between UTF-8 and UCS-2, not UTF-16. Use std::codecvt_utf8_utf16 instead.
This is documented at https://www.boost.org/doc/libs/1_68_0/boost/detail/utf8_codecvt_facet.hpp, in case anybody else is curious.
778@@ -781,12 +779,12 @@ void setClipboard(const QString& str)
779
780 fs::path qstringToBoostPath(const QString &path)
781 {
782- return fs::path(path.toStdString(), utf8);
783+ return fs::path(path.toStdString());
Done quick code review (on other commits as well), seems ok, I will test more deeply later this week. Very excited about this. @NicolasDorier, are you still planning on testing this? If not, I think it would be good to get this merged since #13878 depends on it.
Note to reviewers: even though fix here is pretty esoteric, it should be hopefully should be clear that it doesn’t effect anything other than fs::path encodings used on windows.
Gitian builds for commit 920c090f63f4990bf0f3b3d1a6d3d8a8bcd14ba0 (master):
5add2b8c5d2f92c016b67c38cd7bcb27...
bitcoin-0.17.99-aarch64-linux-gnu-debug.tar.gz2dd9287bfe0054a700d43fa1a1a00837...
bitcoin-0.17.99-aarch64-linux-gnu.tar.gzbfeddd266473d2ee42e0024154b94f08...
bitcoin-0.17.99-arm-linux-gnueabihf-debug.tar.gz563fe1ee61aa98a58b4d6ee54b427640...
bitcoin-0.17.99-arm-linux-gnueabihf.tar.gzb803740d0ebd757974f0dbb625ed310b...
bitcoin-0.17.99-i686-pc-linux-gnu-debug.tar.gzd5a317a657944b70ba44bef1bf512294...
bitcoin-0.17.99-i686-pc-linux-gnu.tar.gzd912fd5f4088d206376acc33bc4da109...
bitcoin-0.17.99-osx-unsigned.dmg4b7648f123919a8ccfef80ef2d98a048...
bitcoin-0.17.99-osx64.tar.gze0a2913a6943585095ccb7f30699f3bd...
bitcoin-0.17.99-riscv64-linux-gnu-debug.tar.gz45c1c4cd2c3ecefef4b4241575f0d818...
bitcoin-0.17.99-riscv64-linux-gnu.tar.gz1e88ba5a040890225a82de451cb30d28...
bitcoin-0.17.99-win32-debug.zip41528e4946c41234dcd261a135ad1906...
bitcoin-0.17.99-win32-setup-unsigned.exe9ee4bcf78f7e6b4479373835b1fcdea9...
bitcoin-0.17.99-win32.zip6733ab2a92fa54e674dc15d310185aa4...
bitcoin-0.17.99-win64-debug.zip1f1067b5af920d7428a8971f10faa0c8...
bitcoin-0.17.99-win64-setup-unsigned.exe98414b1d8cdc92ea71e8501d74865abe...
bitcoin-0.17.99-win64.zip510d753b2229834551a4afa12c9f8815...
bitcoin-0.17.99-x86_64-linux-gnu-debug.tar.gz7fde6af663905ff64808e0596064a4d2...
bitcoin-0.17.99-x86_64-linux-gnu.tar.gz9336ca1ae6af5ba26d2130eb70fff3e5...
bitcoin-0.17.99.tar.gz84f43e005c3039e99c674ac3cd11d93e...
bitcoin-linux-0.18-res.yml9ee4af5353a33f0a45a15c7886e420d1...
bitcoin-linux-build.logd94f28a06a9a2ce7b248618d6eba30c4...
bitcoin-osx-0.18-res.ymld635753718014e38f638fafecba212e3...
bitcoin-osx-build.logb8b293ea809ebae35158248b46b4fdea...
bitcoin-win-0.18-res.yml1dfbf577772d83e8c45d7ba0c9ec66f0...
bitcoin-win-build.logGitian builds for commit af0794a4f1e0a892780150c6069154f8327cb1e2 (master and this pull):
29ef34325ffd34004dcba124e7a0f5f3...
bitcoin-0.17.99-aarch64-linux-gnu-debug.tar.gzfff26d92c7585a434c54ea81e9441fca...
bitcoin-0.17.99-aarch64-linux-gnu.tar.gz6a902b7cc77048a5fd95d3496b957f79...
bitcoin-0.17.99-arm-linux-gnueabihf-debug.tar.gz2c27debec0ca9628c863f66a9c3b205d...
bitcoin-0.17.99-arm-linux-gnueabihf.tar.gz036d3f56dd05a9bb3d9069bbeffded6a...
bitcoin-0.17.99-i686-pc-linux-gnu-debug.tar.gz0627dbd5284d536b5d7e3dba9d3c13a3...
bitcoin-0.17.99-i686-pc-linux-gnu.tar.gz809dc12565fc7ba0cde0d5c66cf9de33...
bitcoin-0.17.99-osx-unsigned.dmgd0c0aa9f02b3cee692359d5603da2738...
bitcoin-0.17.99-osx64.tar.gz76edf5708313d76fe6f8e856f993c2b5...
bitcoin-0.17.99-riscv64-linux-gnu-debug.tar.gzfaa68209be8d98cc148a2edfd2d853ab...
bitcoin-0.17.99-riscv64-linux-gnu.tar.gzcc4a4de6e5d9f2fd4c117a7f9e4bca52...
bitcoin-0.17.99-win32-debug.zip3146a45238b0288424e6bdedaa0ab6a0...
bitcoin-0.17.99-win32-setup-unsigned.exeb07ca6ea16be7547b826d3943dddb033...
bitcoin-0.17.99-win32.zipa3f425fe369fc7df5a298cf24bde5dd2...
bitcoin-0.17.99-win64-debug.zipdedf1210179dce61f087c49a29889dfd...
bitcoin-0.17.99-win64-setup-unsigned.exedc1fa2c9bca670b5ec2e5a003783cbad...
bitcoin-0.17.99-win64.zipbabd859064c6bc7811d9e44ac8d45efd...
bitcoin-0.17.99-x86_64-linux-gnu-debug.tar.gz17aece27454c6116dc295230d3ba907e...
bitcoin-0.17.99-x86_64-linux-gnu.tar.gz5ec9b7a29ae92209a452844a6d10d376...
bitcoin-0.17.99.tar.gz47b1084ba14ae69f056a2a0ffa2308b5...
bitcoin-linux-0.18-res.ymlf32286bf9ae9b08c9274a512fc8da4ce...
bitcoin-linux-build.log381f62a6b76890b5511881d2e39270be...
bitcoin-osx-0.18-res.ymla469e9bd7e8a857676635b04c7491921...
bitcoin-osx-build.logb6b1d460230e1d1fe9e11d3eae3080fe...
bitcoin-win-0.18-res.yml8e6ff4df9f1ce9302b6b3e02799a315e...
bitcoin-win-build.log
ken2812221
DrahtBot
NicolasDorier
MarcoFalke
ryanofsky
laanwj
Labels
Windows
Utils/log/libs
Milestone
0.18.0