do this for noncygwin case since the signal thread is blocked due to
LoadLibrary serialization. */
ld_preload ();
- /* Reset current application locale to "C" per POSIX */
+ /* Set internal locale to the environment settings. */
+ setlocale (LC_CTYPE, "");
+ /* Reset application locale to "C" per POSIX */
_setlocale_r (_REENT, LC_CTYPE, "C");
if (user_data->main)
cygwin_exit (user_data->main (__argc, __argv, *user_data->envptr));