utils: Convert Windows args to utf-8 string

This commit is contained in:
Chun Kuan Lee
2018-08-05 16:38:25 +00:00
parent 9b8bb5f140
commit 380c843217
6 changed files with 62 additions and 1 deletions

View File

@@ -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();