delorie.com/archives/browse.cgi | search |
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 |
Date: | Wed, 4 Oct 2000 14:16:53 -0400 |
Message-Id: | <200010041816.OAA22312@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | ryans AT svisionllc DOT com |
CC: | cygwin AT sourceware DOT cygnus DOT com |
In-reply-to: | <NEBBIIFFHDGNOCKEJEDHGEOCCBAA.ryans@svisionllc.com> |
Subject: | Re: CR/LF translation |
References: | <NEBBIIFFHDGNOCKEJEDHGEOCCBAA DOT ryans AT svisionllc DOT com> |
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). -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |