aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorChun Kuan Lee <[email protected]>2018-08-05 16:38:25 +0000
committerChun Kuan Lee <[email protected]>2018-09-30 15:08:16 +0800
commit380c843217139b180457889699c65b37ae3b4a87 (patch)
tree14f563548a07e34860364c8046e83ef8671730a9 /src/bitcoind.cpp
parentMerge #14316: tests: exclude all tests with difference parameters in `--exclu... (diff)
downloaddiscoin-380c843217139b180457889699c65b37ae3b4a87.tar.xz
discoin-380c843217139b180457889699c65b37ae3b4a87.zip
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 bf04d95b5..18fcd9bc2 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