aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorChun Kuan Lee <ken2812221@gmail.com>2018-08-05 16:38:25 +0000
committerChun Kuan Lee <ken2812221@gmail.com>2018-09-30 15:08:16 +0800
commit380c843217139b180457889699c65b37ae3b4a87 (patch)
tree14f563548a07e34860364c8046e83ef8671730a9 /src/bitcoind.cpp
parent9b8bb5f1402a07736be7d649c2253253672d04e1 (diff)
utils: Convert Windows args to utf-8 string
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r--src/bitcoind.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
index bf04d95b50..18fcd9bc2a 100644
--- a/src/bitcoind.cpp
+++ b/src/bitcoind.cpp
@@ -185,6 +185,10 @@ static bool AppInit(int argc, char* argv[])
int main(int argc, char* argv[])
{
+#ifdef WIN32
+ util::WinCmdLineArgs winArgs;
+ std::tie(argc, argv) = winArgs.get();
+#endif
SetupEnvironment();
// Connect bitcoind signal handlers