Mercurial > hg > nginx-quic
changeset 2739:58399dcc410a
use English only error descriptions in Win32 ngx_strerror_r()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 22 Apr 2009 11:20:31 +0000 |
parents | ae81441e23f4 |
children | e5a4be07c3eb |
files | src/os/win32/ngx_errno.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ngx_config.h> @@ -105,7 +104,7 @@ ngx_strerror_r(ngx_err_t err, u_char *er 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) {