Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hknielsen committed Dec 13, 2023
1 parent c58cc9f commit ddb17fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/google/protobuf/compiler/command_line_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1766,6 +1766,8 @@ bool CommandLineInterface::MakeInputsBeProtoPathRelative(
bool CommandLineInterface::ExpandArgumentFile(
const char* file, std::vector<std::string>* arguments) {

// On windows to force ifstream to handle proper utr-8, we need to convert to proper supported utf8 wstring.
// If we dont then the file can't be opened.
#ifdef _MSC_VER
// Convert the file name to wide chars.
int size = MultiByteToWideChar(CP_UTF8, 0, file, strlen(file), NULL, 0);
Expand Down

0 comments on commit ddb17fa

Please sign in to comment.