diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-05-05 07:31:13 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-05-05 07:31:13 +0000 |
commit | 03406c1ae6b029e1d8d5b3e8553adc9cd1e2ef6c (patch) | |
tree | f9b7d20c76d0fa6a4db97c698bf28782a19160ec /winsup/cygwin/dcrt0.cc | |
parent | 192737978e2e4ffd0d3ceff66e7b204ca344d89b (diff) | |
download | newlib-03406c1ae6b029e1d8d5b3e8553adc9cd1e2ef6c.zip newlib-03406c1ae6b029e1d8d5b3e8553adc9cd1e2ef6c.tar.gz newlib-03406c1ae6b029e1d8d5b3e8553adc9cd1e2ef6c.tar.bz2 |
* dcrt0.cc (dll_crt0_1): Reset locale to "C" even when dynamically
loaded.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 3c33f80..92056c8 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; |