Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-Id: <4.3.1.2.20010112123533.0220ca90@pop.ma.ultranet.com>
X-Sender: lhall@pop.ma.ultranet.com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Fri, 12 Jan 2001 12:37:35 -0500
To: Cygwin <cygwin@cygwin.com>
From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
Subject: Re: Problem with F:/ and /cygdrive/f/
Cc: Joey Mukherjee <joey@swri.org>
In-Reply-To: <3A5F3FE5.FF805015@yahoo.com>
References: <4.3.1.2.20010112115951.0223dc80@pop.ma.ultranet.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

At 12:33 PM 1/12/2001, Earnie Boyd wrote:
>"Larry Hall (RFK Partners, Inc)" wrote:
> > 
> > At 11:54 AM 1/12/2001, Joey Mukherjee wrote:
> > >I have a program which works perfectly when I tell it to read from a file at
> > >/cygdrive/f/ .  However, when I set the directory to F:/, the program no
> > >longer works.
> > >
> > >The program is a simple dumper for one of our data files and it takes the
> > >name of the data file on the command line.  Now, when debugging everything
> > >looks fine.  The open succeeds, but the read starts reading garbage after
> > >the first read.
> > >
> > >This seemed really odd to me since I would figure the open would take care
> > >of any filename conversions.
> > >
> > >Thanks for any insight on what my problem might be...
> > >
> > >Joey
> > 
> > The output of cygcheck -s -r -v and a test case showing the problem would be
> > helpful.
> > 
>
>Not for this Larry.
>
>FAQ ALERT!!
>
>If you access a file via it's drive letter name, it will open it in text
>mode by default.  Chris, will adding binmode to CYGWIN help in this
>case?



Thanks Earnie.  You learn something new everyday. 

In this case, it sounds like the code in the program in question is the 
problem.  It should be properly ported and always open the files as binary
it seems.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



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

