diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7cef30e13..5076711ec 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2014-02-16 Corinna Vinschen + + * dcrt0.cc (dll_crt0_1): Call initial_setlocale before fetching + current user information. + 2014-02-15 Christopher Faylor * DevNotes: Add entry cgf-000024. diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 07cbd4d26..c27079b33 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -929,14 +929,14 @@ dll_crt0_1 (void *) /* Allocate cygheap->fdtab */ dtable_init (); + /* Set internal locale to the environment settings. */ + initial_setlocale (); + uinfo_init (); /* initialize user info */ /* Connect to tty. */ tty::init_session (); - /* Set internal locale to the environment settings. */ - initial_setlocale (); - if (!__argc) { PWCHAR wline = GetCommandLineW ();