diff src/os/win32/ngx_errno.c @ 2766:234ddbff1b2e

it seems MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT) returns ERROR_RESOURCE_LANG_NOT_FOUND for Russian locale
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Apr 2009 18:58:35 +0000
parents e5a4be07c3eb
children e70ac6e13f31
line wrap: on
line diff
--- 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 *er
     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) {