# HG changeset patch # User Igor Sysoev # Date 1240399231 0 # Node ID 58399dcc410aaa2cffa5debf0ed7ad84d7d68dd9 # Parent ae81441e23f41a743f8d7338efed35d72d1f4729 use English only error descriptions in Win32 ngx_strerror_r() diff -r ae81441e23f4 -r 58399dcc410a src/os/win32/ngx_errno.c --- a/src/os/win32/ngx_errno.c Tue Apr 21 20:25:49 2009 +0000 +++ b/src/os/win32/ngx_errno.c Wed Apr 22 11:20:31 2009 +0000 @@ -7,7 +7,6 @@ /* * TODO: * add WSA error messages for NT and 98 - * test for English only messages */ #include @@ -105,7 +104,7 @@ 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) {