aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/support
diff options
context:
space:
mode:
authorGravatar goldenbull <goldenbull@gmail.com>2016-05-12 14:30:14 +0800
committerGravatar goldenbull <goldenbull@gmail.com>2016-05-12 14:30:14 +0800
commit11b55dfd429787deb38f3ef91e904369571cbada (patch)
tree98aa1eb53b0683344f9e78389a83ed03358ca5c6 /src/core/lib/support
parent1acbe3e8a8cfa8d35843b0007b9cd79d91c62c16 (diff)
use LANG_ENGLISH for windows api FormatMessage
Diffstat (limited to 'src/core/lib/support')
-rw-r--r--src/core/lib/support/string_util_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/support/string_util_win32.c b/src/core/lib/support/string_util_win32.c
index f3cb0c050f..0d7bcdb5aa 100644
--- a/src/core/lib/support/string_util_win32.c
+++ b/src/core/lib/support/string_util_win32.c
@@ -83,7 +83,7 @@ char *gpr_format_message(int messageid) {
DWORD status = FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL, (DWORD)messageid, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ NULL, (DWORD)messageid, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
(LPTSTR)(&tmessage), 0, NULL);
if (status == 0) return gpr_strdup("Unable to retrieve error string");
message = gpr_tchar_to_char(tmessage);