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: <20001004182604.9952.qmail@web122.yahoomail.com>
Date: Wed, 4 Oct 2000 11:26:04 -0700 (PDT)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: CR/LF translation
To: DJ Delorie <dj@delorie.com>, ryans@svisionllc.com
Cc: cygwin@sourceware.cygnus.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

--- DJ Delorie <dj@delorie.com> wrote:
> 
> A text file created by Notepad will always have the CR at the end of
> the line.  This is the "normal" DOS text format.
> 
> Use "cat -v" to actually *see* the CRs as printable characters.  "od
> -c foo" will also show you exactly which characters are in your file
> (`foo' in the example).
> 
> MSVC will *always* treat a file as DOS text unless specified otherwise
> (so it eats CRs).  I'm not sure how to change stdin to binary with
> MSVC.  With Cygwin, you should be able to do setmode(0,O_BINARY).
> 

FWIR, that is the way you do it with MSVC.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

