From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Issues with Windows gcc -mno-cygwin (Mingw) Date: 20 Mar 2003 08:29:47 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <2561-Tue18Mar2003195457+0200-eliz@elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048149121 31690 80.91.224.249 (20 Mar 2003 08:32:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 08:32:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 20 09:31:59 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18vvSx-0008Ev-00 for ; Thu, 20 Mar 2003 09:31:59 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18vvU6-0008Od-00 for ; Thu, 20 Mar 2003 09:33:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vvS0-0004xO-00 for emacs-devel@quimby.gnus.org; Thu, 20 Mar 2003 03:31:00 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vvRc-0004Sa-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 03:30:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vvRV-00045i-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 03:30:32 -0500 Original-Received: from server0011.freedom2surf.net ([194.106.56.14] helo=server0027.freedom2surf.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18vvRR-0003n7-00; Thu, 20 Mar 2003 03:30:25 -0500 Original-Received: from nyaumo.jasonr.f2s.com ([195.137.103.251]) h2K8ULRT011672; Thu, 20 Mar 2003 08:30:23 GMT Original-Received: from nyaumo.jasonr.f2s.com (localhost [127.0.0.1]) by nyaumo.jasonr.f2s.com (Postfix) with ESMTP id D29FF4A3DC; Thu, 20 Mar 2003 08:29:47 +0000 (GMT) Original-To: Benjamin Riefenstahl In-Reply-To: Original-Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-cc: andrewi@gnu.org Original-cc: Eli Zaretskii X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12480 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12480 Benjamin Riefenstahl writes: > Currently the corresponding assignment to _fmode is in _start(), > which is executed before main(), and I thought there might be a > reason why it is done there. Only it doesn't work currently, > because the runtime code between _start() and main() resets _fmode > for some reason. A global initialization is basically same code > that binmode.o does, and that works. Thank you for that. Until now I've been wondering why Emacs has no problems with MSVC, but has suddenly started having problems with MinGW32. Is it reasonable for the runtime to change _fmode between _start() and main()? I think it probably is, so unless we really need _fmode to be set between _start() and main() we should move the assignment to main().