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: 19 Mar 2003 08:41:45 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <32603294.1048059580273.JavaMail.www@wwinf0502> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048063454 29630 80.91.224.249 (19 Mar 2003 08:44:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 08:44:14 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 19 09:44:13 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 18vZBE-0007hj-00 for ; Wed, 19 Mar 2003 09:44:12 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18vZBu-00087F-00 for ; Wed, 19 Mar 2003 09:44:54 +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 18vZAf-0003t6-08 for emacs-devel@quimby.gnus.org; Wed, 19 Mar 2003 03:43:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vZAC-00033j-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 03:43:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vZ9g-0001yk-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 03:42:36 -0500 Original-Received: from server0011.freedom2surf.net ([194.106.56.14] helo=server0027.freedom2surf.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vZ9M-0001e8-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 03:42:16 -0500 Original-Received: from nyaumo.jasonr.f2s.com ([195.137.103.251]) h2J8gGRT013972; Wed, 19 Mar 2003 08:42:16 GMT Original-Received: from nyaumo.jasonr.f2s.com (localhost [127.0.0.1]) by nyaumo.jasonr.f2s.com (Postfix) with ESMTP id DB1944A889; Wed, 19 Mar 2003 08:41:46 +0000 (GMT) Original-To: david.ponce@wanadoo.fr In-Reply-To: <32603294.1048059580273.JavaMail.www@wwinf0502> Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:12457 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12457 David PONCE writes: > Hi Jason, > > I use latest versions of native mingw tools (not through cygwin): > > - gcc 3.2.2 (mingw special 20030208-1) > - binutils 2.13.90-20030111-1 > - mingw-runtime 2.4 > - w32api 2.2 > > I also encountered that problem, with latest versions of the > mingw-runtime (2.3, 2.4). > > Since these versions, the default runtime _fmode is text mode. > Because of that, I noticed that Emacs incorrectly reads some data, > and I got runtime errors, particularly in the function > "get_doc_string" in doc.c. The default runtime _fmode is text with all Windows compilers. Why is this a problem only for mingw32's 20030208 build of GCC 3.2.2? The usual way to set _fmode to binary globally is to link with binmode.obj, but I'm not absolutely sure that we want _fmode to be binary globally (otherwise we would have already done this for MSVC).