X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 6 Apr 2009 15:00:56 +0200 From: Corinna Vinschen 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: <20090406130056.GB4134@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49D9EDFF.9000904@byu.net> User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 05:56, Eric Blake wrote: > According to Dave Korn on 4/6/2009 3:08 AM: > > I wonder if m4 suddenly changed its behaviour as a result of now being > > locale sensitive, which had knock-on effects on autoconf and bison, which > > causes the trouble by doing something unexpected when generating the ld or ar > > parsers.. I don't have any of LANG or LC_* set in my environment so I thought > > I ought to just have the standard C locale, but I don't understand it well. > > I hope not. M4 doesn't (yet) call setlocale(), so it is supposed to > operate entirely in the C locale even if you HAVE set LC_ALL or friends. The default is still the "C" locale. I explain what happens at process startup in http://cygwin.com/1.7/cygwin-ug-net/setup-locale.html#setup-locale-problems When started from a non-Cygwin process, Cygwin reads out ther LANG et al. variables and sets the codepage accordingly. Or, to the current ANSI charset, if necessary, see http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/environ.cc.diff?r1=1.175&r2=1.176&cvsroot=src&f=h 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 so the effect is, that the application is running in the "C" locale if it doesn't call setlocale with an explicitely or implicitely (per the environment) set locale other than "C" or "POSIX". 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/