diff src/os/win32/ngx_win32_init.c @ 3458:bdcae1a576e3

compare long file names in case-insensitive mode, the bug had been introduced in r3418
author Igor Sysoev <igor@sysoev.ru>
date Wed, 03 Mar 2010 10:05:54 +0000
parents d8316f307b6a
children d620f497c50f
line wrap: on
line diff
--- a/src/os/win32/ngx_win32_init.c
+++ b/src/os/win32/ngx_win32_init.c
@@ -114,6 +114,9 @@ ngx_os_init(ngx_log_t *log)
 
     for (n = ngx_pagesize; n >>= 1; ngx_pagesize_shift++) { /* void */ }
 
+    /* delete default "C" locale for _wcsicmp() */
+    setlocale(LC_ALL, "");
+
 
     /* init Winsock */