Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 5 Nov 2004 12:28:55 -0500
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Binary read on textmode mount
Message-ID: <20041105172855.GA25396@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <Pine.CYG.4.58.0411051050240.3688@Crunch.bcgssbd.sciatl.com> <20041105164033.9CEF11B3FA@cgf.cx> <Pine.CYG.4.58.0411051145180.3688@Crunch.bcgssbd.sciatl.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.CYG.4.58.0411051145180.3688@Crunch.bcgssbd.sciatl.com>
User-Agent: Mutt/1.4.1i

On Fri, Nov 05, 2004 at 11:48:31AM -0500, Shaffer, Kenneth wrote:
>I'm using the cygwin development environment and so thought this was the
>correct place to post a problem. But you make a good point, so I copied
>the file to /tmp, mounted as binary, and got the same results.

You are running a windows program.

Windows programs DO NOT UNDERSTAND cygwin mounts.  Cygwin doesn't
magically affect any windows program which runs in "the cygwin
development environment".

If you want to open a file in binary mode use "rb" in your fopen
call or O_BINARY in your open call.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

