From b5b7e8946992fb82be8b9bdc9970caa67ce8ced6 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 22 Apr 2009 11:20:31 +0000 Subject: [PATCH] use English only error descriptions in Win32 ngx_strerror_r() --- src/os/win32/ngx_errno.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/win32/ngx_errno.c b/src/os/win32/ngx_errno.c index 12af325c7..13d14c88e 100644 --- a/src/os/win32/ngx_errno.c +++ b/src/os/win32/ngx_errno.c @@ -7,7 +7,6 @@ /* * TODO: * add WSA error messages for NT and 98 - * test for English only messages */ #include @@ -105,7 +104,7 @@ ngx_strerror_r(ngx_err_t err, u_char *errstr, size_t size) len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, - MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), + MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), (char *) errstr, size, NULL); if (len == 0) {