diff options
author | Chun Kuan Lee <ken2812221@gmail.com> | 2018-08-05 16:38:25 +0000 |
---|---|---|
committer | Chun Kuan Lee <ken2812221@gmail.com> | 2018-09-30 15:08:16 +0800 |
commit | 380c843217139b180457889699c65b37ae3b4a87 (patch) | |
tree | 14f563548a07e34860364c8046e83ef8671730a9 /src/qt | |
parent | 9b8bb5f1402a07736be7d649c2253253672d04e1 (diff) |
utils: Convert Windows args to utf-8 string
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/bitcoin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 1e950e2686..61a9f390e9 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -552,6 +552,10 @@ static void SetupUIArgs() #ifndef BITCOIN_QT_TEST int main(int argc, char *argv[]) { +#ifdef WIN32 + util::WinCmdLineArgs winArgs; + std::tie(argc, argv) = winArgs.get(); +#endif SetupEnvironment(); std::unique_ptr<interfaces::Node> node = interfaces::MakeNode(); |