From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Issues with Windows gcc -mno-cygwin (Mingw) Date: Tue, 18 Mar 2003 19:54:57 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <2561-Tue18Mar2003195457+0200-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1048010530 26932 80.91.224.249 (18 Mar 2003 18:02:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2003 18:02:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 18 19:02:07 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 18vLPb-000701-00 for ; Tue, 18 Mar 2003 19:02:07 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18vLPy-0004oL-00 for ; Tue, 18 Mar 2003 19:02:30 +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 18vLOj-00047u-09 for emacs-devel@quimby.gnus.org; Tue, 18 Mar 2003 13:01:13 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vLOM-00046D-00 for emacs-devel@gnu.org; Tue, 18 Mar 2003 13:00:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vLOK-000462-00 for emacs-devel@gnu.org; Tue, 18 Mar 2003 13:00:49 -0500 Original-Received: from aragorn.inter.net.il ([192.114.186.23]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vLOA-0003yA-00 for emacs-devel@gnu.org; Tue, 18 Mar 2003 13:00:38 -0500 Original-Received: from zaretsky ([80.230.235.192]) by aragorn.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AJC44618; Tue, 18 Mar 2003 20:00:28 +0200 (IST) Original-To: Benjamin.Riefenstahl@epost.de X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Benjamin Riefenstahl on 18 Mar 2003 18:14:09 +0100) 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:12445 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12445 > From: Benjamin Riefenstahl > Date: 18 Mar 2003 18:14:09 +0100 > > I have compiled the CVS HEAD with the Cygwin Mingw cross-environment > (gcc -mno-cygwin). I have had two problems: > > - The cygpath issue. The Makefiles have the necessary code to use the > Cygwin cygpath utility, but it's commented out. I appreciate that > the situation is not very stable in that area, but could we consider > a conditional and a configure item for this? We do need that code > as long as we want Emacs to support Cygwin at compile-time, but not > at run-time, because without that code the Makefile will provide > Cygwin paths to ELisp. Could you please be more specific? Where in ELisp will Cygwin paths be inserted? > - Problem with _fmode (global MSC variable set to O_BINARY as the > default file mode). For a simple patch see below. Strictly > speaking I think the real problem is that this is not handled > without the _fmode hack. The code should just use its own global > variable (or even more simply just add O_BINARY everywhere) instead > of using this brittle compiler/runtime dependent solution. Is this change only for the unexec phase, or for the entire Emacs operation? If the former, you could use O_BINARY in unexw32.c and be done with it. If the latter (which I suspect is the case), emacs.c already has similar code fragments for other DOS/Windows ports, so I think the MinGW port should also use it (I actually thought it already did, so I wonder how come this was a problem in your case).