diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-22 11:20:31 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-22 11:20:31 +0000 |
commit | b5b7e8946992fb82be8b9bdc9970caa67ce8ced6 (patch) | |
tree | 61c3ac836aea086ad70ec595c084751a7e345838 /src | |
parent | c8e9f26a57cc387e4987a7740efed2de6832ac72 (diff) | |
download | nginx-b5b7e8946992fb82be8b9bdc9970caa67ce8ced6.tar.gz nginx-b5b7e8946992fb82be8b9bdc9970caa67ce8ced6.zip |
use English only error descriptions in Win32 ngx_strerror_r()
Diffstat (limited to 'src')
-rw-r--r-- | src/os/win32/ngx_errno.c | 3 |
1 files changed, 1 insertions, 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 <ngx_config.h> @@ -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) { |