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
Message-ID: <418ABB03.5060208@familiehaase.de>
Date: Fri, 05 Nov 2004 00:28:03 +0100
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Perl binmode problem on text mount
References: <41897FF4.1080501@agilent.com> <418A9BF3.5010903@familiehaase.de> <20041104212608.GC16067@trixie.casa.cgf.cx> <418AA3FA.7080905@familiehaase.de> <20041104220056.GG16067@trixie.casa.cgf.cx> <Pine.GSO.4.61.0411041710380.295@slinky.cs.nyu.edu>
In-Reply-To: <Pine.GSO.4.61.0411041710380.295@slinky.cs.nyu.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Igor Pechtchanski wrote:

> FWIW, the following two invocations of perl from a text mount differ in
> their result:
> 
> perl -e 'open OUT,">q.txt";binmode OUT;print OUT "Hello\n"'
> perl -e 'binmode STDOUT;print STDOUT "Hello\n"' > q.txt

Yes, that is the interesting part, perl does all correct when writing
directly to a real file, but when the the output is redirected, binmode
is ignored.


Gerrit
-- 
=^..^=

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

