delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/01/11:32:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Rolf Campbell <rcampbell AT tropicnetworks DOT com>
Subject: Re: Updated: perl-5.8.0-2
Date: Tue, 01 Apr 2003 11:13:23 -0500
Lines: 31
Message-ID: <b6cdqm$v99$1@main.gmane.org>
References: <83040F98B407E6428FEC18AC720F5D732DB804 AT exchange DOT tropicnetworks DOT com> <121-156912388 DOT 20030401120153 AT familiehaase DOT de>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
In-Reply-To: <121-156912388.20030401120153@familiehaase.de>

Gerrit P. Haase wrote:
> Rolf schrieb:
>>So, is this a cygwin perl problem?  Or has the stock perl decided
>>to only work with magic ENV variables?
> I don't see the problem in the latest Perl (5.9.0) and I'm trying to
> figure out how it can be fixed, in the meantime, please try to use the
> magic PERLIO=perlio setting for your environment.
> Gerrit

Ok, using PERLIO=perlio, but I'm still having a problem (which worked in 
the previous version of Perl).

TEST.PL:
1:#!/bin/perl
2:$/ = "\r\n";
3:
4:open( LOG, "<in" ) ||
5:  die "Could not open log.\n";
6:binmode LOG, ":crlf";
7:
8:$in = <LOG>;
9:print $in;

in (od -c in):
0000000   a   b   c  \r  \n   d   e   f  \r  \n
0000012

This is on a BINMODE mount.  This script outputs "0000000   a   b   c 
\n   d   e   f  \n".  If I go back to prev Perl, OR remove line#2 OR 
remove line#6, then it outputs "0000000   a   b   c  \n"



--
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