summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2023-11-22 16:24:26 (GMT)
committerGitHub <noreply@github.com>2023-11-22 16:24:26 (GMT)
commite64ed58d68d394e0be08f4435b507dd7a6e5b510 (patch)
tree653bc51bc6ad52ef6bf97d8dcf89365de8fbddf9
parent4b6a8ac3b1a05da1a2ed7e4a4a0216c5b770bc74 (diff)
parentbfa999c8c6746a6b88750693b3b97f56aae59e8e (diff)
downloadNinja-e64ed58d68d394e0be08f4435b507dd7a6e5b510.zip
Ninja-e64ed58d68d394e0be08f4435b507dd7a6e5b510.tar.gz
Ninja-e64ed58d68d394e0be08f4435b507dd7a6e5b510.tar.bz2
Merge pull request #2219 from Siogian/master
fix garbled error message, like Chinese in Windows
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index eefa3f5..0553de3 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -461,7 +461,7 @@ string GetLastErrorString() {
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
err,
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
(char*)&msg_buf,
0,
NULL);