mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 04:12:05 +00:00
use English only error descriptions in Win32 ngx_strerror_r()
This commit is contained in:
parent
c8e9f26a57
commit
b5b7e89469
1 changed files with 1 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue