aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_errno.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-27 18:58:35 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-27 18:58:35 +0000
commit28b313290b9cacb8c4e4c6320589a97e2f0c5ec7 (patch)
treea3600078d80dc00762375068aa85b9e81d9bd4e4 /src/os/win32/ngx_errno.c
parentf67e0a4050c7d180123ad8bd473275cf40a7e483 (diff)
downloadnginx-28b313290b9cacb8c4e4c6320589a97e2f0c5ec7.tar.gz
nginx-28b313290b9cacb8c4e4c6320589a97e2f0c5ec7.zip
it seems MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT) returns
ERROR_RESOURCE_LANG_NOT_FOUND for Russian locale
Diffstat (limited to 'src/os/win32/ngx_errno.c')
-rw-r--r--src/os/win32/ngx_errno.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/win32/ngx_errno.c b/src/os/win32/ngx_errno.c
index fc343da37..b2505918b 100644
--- a/src/os/win32/ngx_errno.c
+++ b/src/os/win32/ngx_errno.c
@@ -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) {