We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f946c9 commit 30fc150Copy full SHA for 30fc150
src/node_main.cc
@@ -87,6 +87,9 @@ int wmain(int argc, wchar_t* wargv[]) {
87
}
88
89
argv[argc] = nullptr;
90
+ // CodePage 932 and similar environments cannot correctly handle file names with std::filesystem.
91
+ // Therefore, force .utf-8 encoding with locale to enable proper processing.
92
+ std::locale::global(std::locale{".utf-8"});
93
// Now that conversion is done, we can finally start.
94
return node::Start(argc, argv);
95
0 commit comments