File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 8
8
#include < nanoCLR_Application.h>
9
9
#include < target_common.h>
10
10
#include < iostream>
11
+ #include < locale>
12
+ #include < codecvt>
13
+ #include < string>
11
14
12
15
//
13
16
// UNDONE: Feature configuration
@@ -68,7 +71,7 @@ bool Target_GetReleaseInfo(NFReleaseInfo &releaseInfo)
68
71
// ///////////////////////////////////////////////////////////////////////////
69
72
//
70
73
71
- int _tmain (int argc, wchar_t *argv[])
74
+ int _tmain (int argc, _TCHAR *argv[])
72
75
{
73
76
wprintf (L" \n .NET nanoFramework nanoCLR WIN32 v" );
74
77
std::cout << VERSION_STRING;
@@ -87,10 +90,11 @@ int _tmain(int argc, wchar_t *argv[])
87
90
// fill arguments from command line
88
91
clrSettings.StartArgs .resize (argc - 1 );
89
92
93
+ std::wstring_convert<std::codecvt_utf8_utf16<wchar_t >> converter;
94
+
90
95
for (int i = 0 ; i < argc - 1 ; i++)
91
96
{
92
- std::wstring argv_ = std::wstring (argv[1 + i]);
93
- clrSettings.StartArgs [i] = argv_;
97
+ clrSettings.StartArgs [i] = converter.from_bytes (argv[1 + i]);
94
98
}
95
99
96
100
ClrStartup (clrSettings);
You can’t perform that action at this time.
0 commit comments