This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Earlier reset to "C" locale?
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin-developers at cygwin dot com
- Date: Thu, 5 May 2011 06:49:41 +0100
- Subject: Earlier reset to "C" locale?
The reset to the "C" locale for LC_CTYPE currently is done just before
main() is invoked at the end of dll_crt0_1(). I think it would be
better do this a bit earlier, just before
'cygwin_finished_initializing = true;', so that application code
invoked via dlls.init() or the premain mechanism starts in the correct
locale too. Also, it looks like programs that dynamically load the
Cygwin DLL currently miss out on the reset.
Andy