www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/06/09:51:13

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 6 Apr 2009 15:50:47 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Reverting from 1.7.0-45 [was Re: [1.7]: For the love of god, don't update!]
Message-ID: <20090406135047.GC4134@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <49D97797 DOT 9080902 AT gmail DOT com> <49D9913B DOT 7030708 AT cwilson DOT fastmail DOT fm> <49D99981 DOT 4030503 AT gmail DOT com> <49D99A02 DOT 7070407 AT gmail DOT com> <49D99D65 DOT 8040304 AT cwilson DOT fastmail DOT fm> <49D9C684 DOT 8030201 AT gmail DOT com> <49D9EDFF DOT 9000904 AT byu DOT net> <20090406130056 DOT GB4134 AT calimero DOT vinschen DOT de> <49D9FE58 DOT 5030002 AT cwilson DOT fastmail DOT fm>
MIME-Version: 1.0
In-Reply-To: <49D9FE58.5030002@cwilson.fastmail.fm>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Apr  6 09:06, Charles Wilson wrote:
> Corinna Vinschen wrote:
> 
> > However, just before the application's main() is called, the locale is
> > set back to "C", see
> > http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?r1=1.352&r2=1.353&cvsroot=src&f=h
> 
> Hmm. "before main()" huh?  Is that *before*, or *after*, C++ static
> initializers are called?  If it's after, then that could be a problem,
> at least for languages that support such things. (C++, Java?)

The global ctors functions are called before the environment is
initialized.  In that state the locale is always "C".

Note that the locale is only changed temporarily when the environment is
read from a non-Cygwin parent.  This doesn't affect forked Cygwin
processes, nor Cygwin processes exec'ed from a Cygwin parent.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019