Skip to content

Commit

Permalink
Force to use U.S. English for Win32 error messages (protocolbuffers#4317
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cqjjjzr authored and acozzette committed Mar 20, 2020
1 parent a015ca8 commit 70fc0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/subprocess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ std::string Subprocess::Win32ErrorMessage(DWORD error_code) {
// WTF?
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, error_code, 0,
NULL, error_code, MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
(LPSTR)&message, // NOT A BUG!
0, NULL);

Expand Down

0 comments on commit 70fc0f0

Please sign in to comment.