delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/04/08:24:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 4 Jun 2002 14:23:40 +0200
From: John Marshall <johnm AT falch DOT net>
To: Ton van Overbeek <tvoverbe AT cistron DOT nl>
Cc: cygwin AT cygwin DOT com, prc-tools-devel AT lists DOT sourceforge DOT net
Subject: Re: text/binary problem since 20020530 snapshot
Message-ID: <20020604122340.GA4166@kahikatea.falch.net>
References: <3CFB9C34 DOT 702055D5 AT cistron DOT nl>
Mime-Version: 1.0
In-Reply-To: <3CFB9C34.702055D5@cistron.nl>
User-Agent: Mutt/1.3.27i
Organization: Falch.net

On Mon, Jun 03, 2002 at 06:41:24PM +0200, Ton van Overbeek wrote:
> Since the 20020530 snapshot the default mode for open is binary.
[...]
> This turns out to be a serious problem for a cygwin hosted cross-compiler
> I am using: prc-tools (gcc for PalmOS. See http://prc-tools.sourceforge.net
> for details).

This (the fact that it turns into a serious problem for us) is probably
mostly a bug in prc-tools.  We're using GCC 2.95.3's cccp, and it's
opening files with open(O_RDONLY) when it really should be using
open(O_RDONLY|O_TEXT).  Whatever behaviour different Cygwins have,
we're currently asking for the wrong thing.

I had hoped that we'd update to GCC 3.x in time and just avoid this
problem (IIRC 3.x explicitly understands CRs), but it seems we'll have
to apply the same sort of O_TEXT patches as Cygwin's native GCC has.
No big deal (other than timing).

    John

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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