mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
it seems MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT) returns
ERROR_RESOURCE_LANG_NOT_FOUND for Russian locale
This commit is contained in:
parent
f67e0a4050
commit
28b313290b
@ -20,7 +20,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_ENGLISH, SUBLANG_DEFAULT),
|
||||
MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
|
||||
(char *) errstr, size, NULL);
|
||||
|
||||
if (len == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user