From: Corinna Vinschen Date: Thu, 5 May 2011 07:31:13 +0000 (+0000) Subject: * dcrt0.cc (dll_crt0_1): Reset locale to "C" even when dynamically X-Git-Tag: sid-snapshot-20110601~120 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=03406c1ae6b029e1d8d5b3e8553adc9cd1e2ef6c;p=newlib-cygwin.git * dcrt0.cc (dll_crt0_1): Reset locale to "C" even when dynamically loaded. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 55fe43a20..47fcb33e4 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-05-05 Corinna Vinschen + + * dcrt0.cc (dll_crt0_1): Reset locale to "C" even when dynamically + loaded. + 2011-05-05 Yaakov Selkowitz * posix.sgml (std-notimpl): Remove bsd_signal, setcontext, and diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 3c33f8054..92056c80f 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -905,7 +905,10 @@ dll_crt0_1 (void *) set_errno (0); if (dynamically_loaded) - return; + { + _setlocale_r (_REENT, LC_CTYPE, "C"); + return; + } /* Disable case-insensitive globbing */ ignore_case_with_glob = false;