mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 03:03:58 +01:00
utils: Convert Windows args to utf-8 string
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <stdio.h>
|
||||
#include <tuple>
|
||||
|
||||
#include <event2/buffer.h>
|
||||
#include <event2/keyvalq_struct.h>
|
||||
@@ -511,6 +512,10 @@ static int CommandLineRPC(int argc, char *argv[])
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
#ifdef WIN32
|
||||
util::WinCmdLineArgs winArgs;
|
||||
std::tie(argc, argv) = winArgs.get();
|
||||
#endif
|
||||
SetupEnvironment();
|
||||
if (!SetupNetworking()) {
|
||||
fprintf(stderr, "Error: Initializing networking failed\n");
|
||||
|
||||
Reference in New Issue
Block a user