From de9ec5401e83893770fce0c74e00caec7eb69388 Mon Sep 17 00:00:00 2001 From: tony Date: Mon, 19 Aug 2024 12:53:18 +0100 Subject: [PATCH] Windows - Fix utf8 command line args --- src/google/protobuf/compiler/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[]) {