delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/08/14:03:03

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
Message-ID: <3B48A043.6080106@ece.gatech.edu>
Date: Sun, 08 Jul 2001 14:02:43 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.1) Gecko/20010607 Netscape6/6.1b1
X-Accept-Language: en-us
MIME-Version: 1.0
To: gp AT familiehaase DOT de
CC: Christopher Rath <christopher AT rath DOT ca>, cygwin AT cygwin DOT com
Subject: Re: Perl, text files, & \r
References: <012a01c1072c$a263f5e0$83fafea9 AT tiny450> <3B487F01 DOT 20173 DOT 12DF36CB AT localhost>


Gerrit P. Haase wrote:

> Christopher Rath schrieb am 2001-07-07, 23:13:
> 
> 
>>solution: use of the 'binmode' command.
>>
> 
> Would it help to set the environment settings CYGWIN=binmode ?


Doubt it.  CYGWIN=binmode only affects the line-end-handling behavior of 
pipes.  Not file IO.

> 
> [...]
> 
>>I think this should be in the Cygwin FAQ.  Why this works can be found on
>>pp. 53-55 and 147 of "Programming Perl 2nd Ed."
>>
> 
> Is it a cygwin issue or more a perl one? 
> You can choice at setup time between 'unix(==binmode)' and 
> 'windows(==textmode)' mode. 

> You could mount with '-b' for binmode. 


This part (file-system mounting) refers to line-end-handling behavior of 
file IO, not pipes.  This is the likely culprit here.

> It should work as it does on unixlike systems if you setup 
> with binmode as default.


binmode drive mounting.  Yes.

--Chuck



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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