www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/30/17:21:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A773D49.AB893EA4@yahoo.com>
Date: Tue, 30 Jan 2001 17:16:41 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
CC: cygwin AT cygwin DOT com
Subject: Re: Bug In Mount? (Bug in read()?)
References: <Pine DOT GSO DOT 4 DOT 20 DOT 0101301630170 DOT 751-100000 AT frontal DOT ibb DOT gatech DOT edu>

Charles Wilson wrote:
> 
> On Tue, 30 Jan 2001, Christopher Faylor wrote:
> 
> > On Tue, Jan 30, 2001 at 01:16:11PM -0800, Josh Schulte wrote:
> > >I don't think I have got all the details across.  I don't see how it
> > >can not be bug.
> > >
> > >I take a computer.  I remove the cygwin directory.  I remove the cygwin
> > >registry entries.  I install cygwin with a particular mount type
> > >(textmode or binmode).  I run my test.  I get the same results on both
> > >tests.  I have done this on two seperate computers.  Both computers
> > >give me the same results.  In the mode that the \r is supposed to be
> > >stripped, it is not.
> >
> > It sounds like it is either a bug in perl or you're not understanding
> > something about perl to me.
> >
> > If there was truly a bug in read(), I somehow suspect that we'd have
> > heard more reports about this for other programs.
> 
> There have been sporadic reports of line-ending problems with perl-5.6.1
> on this list.  I would assume that perl is the culprit, not
> cygwin.  Unfortunately, the cygwin-perl maintainer is traveling right now
> and is not expected back online until the end of February.  Unless
> somebody wants to dig into the perl-5.6.1-1-src.tar.gz source code (that
> is, the cygwin perl source bundle) this will just have to wait until Eric
> returns.
> 

I *have* executed Josh's test.  Josh's contents file contains \r\n line
endings.  Perl has the fd set to binary mode regardless of where it is
opened.  So if the file is on a text mode mount it still opens the file
or sets the fd to binary mode giving the results Josh is seeing.  It you
remove the \r from the contents file then the expected results are seen.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019