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

@@ -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