setlocale Unwanted behavior

Ranier Vf ranier.vf at gmail.com
Thu Jun 9 18:42:57 UTC 2016


Hi,
In ngx_win32_init.c
function ngx_os_init, nginx call:

setlocale(LC_ALL, "");

This break all conversions sprintf, when wanted '.' point decimal.
In my case, results are ',' coma decimal.

Solution:
setlocale(LC_TYPE, "");

Only LC_TYPE affects _wcsicmp().

Best regards,

Ranier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20160609/aa2351d9/attachment.html>


More information about the nginx-devel mailing list