Skip to content

Commit

Permalink
Windows - Fix utf8 command line args
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydnewell committed Aug 19, 2024
1 parent 025909c commit de9ec54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ int main(int argc, char* argv[]) {
std::string* multibyte_string = new auto(ToMultiByteUtf8String(wargv[i]));
argv_mbcs[i] = const_cast<char*>(multibyte_string->c_str());
}
return google::protobuf::compiler::ProtobufMain(argc, argv);
return google::protobuf::compiler::ProtobufMain(argc, argv_mbcs);
}
#else
int main(int argc, char* argv[]) {
Expand Down

0 comments on commit de9ec54

Please sign in to comment.