diff --git a/src/google/protobuf/compiler/main.cc b/src/google/protobuf/compiler/main.cc index 8ce7368585..f634e0cdc1 100644 --- a/src/google/protobuf/compiler/main.cc +++ b/src/google/protobuf/compiler/main.cc @@ -134,7 +134,7 @@ int main(int argc, char* argv[]) { std::string* multibyte_string = new auto(ToMultiByteUtf8String(wargv[i])); argv_mbcs[i] = const_cast(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[]) {