Re: Perl binmode problem on text mount

2004-11-04 Thread Gerrit P. Haase
Earl Chew wrote: How do I go about logging a bug report? You may also simply mail to: perlbug at perl dot org Be sure to CC me, please. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:

Re: Perl binmode problem on text mount

2004-11-04 Thread Gerrit P. Haase
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 di

Re: Perl binmode problem on text mount

2004-11-04 Thread Gerrit P. Haase
Earl Chew wrote: Christopher Faylor wrote: You are missing the fact that the OP was reporting a real bug, apparently. To confirm, I ran the program: binmode STDOUT; print "Hello\n"; using Perl 5.6.1-2 on Cygwin 1.5.11: perl foo.pl > foo.txt ; od -c foo.txt 000 H e l l o \r \n

Re: Perl binmode problem on text mount

2004-11-04 Thread Gerrit P. Haase
Christopher Faylor wrote: On Thu, Nov 04, 2004 at 10:49:46PM +0100, Gerrit P. Haase wrote: Christopher Faylor wrote: Pipes are binmode by default. That means they are just as pipes are ought to be, "what goes in comes out again, not more and not less"? Or does it mean that a pipe always strips \r?

Re: Perl binmode problem on text mount

2004-11-04 Thread Igor Pechtchanski
On Thu, 4 Nov 2004, Christopher Faylor wrote: > On Thu, Nov 04, 2004 at 10:49:46PM +0100, Gerrit P. Haase wrote: > >Christopher Faylor wrote: > >>Pipes are binmode by default. > > > >That means they are just as pipes are ought to be, "what goes in comes > >out again, not more and not less"? > > >

Re: Perl binmode problem on text mount

2004-11-04 Thread Christopher Faylor
On Thu, Nov 04, 2004 at 10:49:46PM +0100, Gerrit P. Haase wrote: >Christopher Faylor wrote: >>Pipes are binmode by default. > >That means they are just as pipes are ought to be, "what goes in comes >out again, not more and not less"? > >Or does it mean that a pipe always strips \r? Then the cat ex

Re: Perl binmode problem on text mount

2004-11-04 Thread Gerrit P. Haase
Christopher Faylor wrote: Pipes are binmode by default. That means they are just as pipes are ought to be, "what goes in comes out again, not more and not less"? Or does it mean that a pipe always strips \r? Then the cat example of the OP doesn't count at all. Gerrit -- =^..^= -- Unsubscribe info:

Re: Perl binmode problem on text mount

2004-11-04 Thread Christopher Faylor
On Thu, Nov 04, 2004 at 10:15:31PM +0100, Gerrit P. Haase wrote: >Earl Chew wrote: > >>This code used to work on Perl 5.6.1-2 on Cygwin 1.3.10. >> >>I've now moved to Perl 5.8.5-3 on Cygwin 1.5.11. >> >>Here is the Perl program: >> >>binmode STDOUT; >>print "Hello\n"; >> >>1. Output to file

Re: Perl binmode problem on text mount

2004-11-04 Thread Gerrit P. Haase
Earl Chew wrote: This code used to work on Perl 5.6.1-2 on Cygwin 1.3.10. I've now moved to Perl 5.8.5-3 on Cygwin 1.5.11. Here is the Perl program: binmode STDOUT; print "Hello\n"; 1. Output to file on text mount perl foo.pl > foo.txt ; od -c foo.txt 000 H e l l o \r \n# P

Re: Perl binmode problem on text mount

2004-11-04 Thread Earl Chew
Yitzchak Scott-Thoennes wrote: > So check the length. Good idea: binmode STDOUT; print "Hello\n"; perl foo.pl > foo.txt ; od -c foo.txt ; ls -l foo.txt 000 H e l l o \r \n# Perl 5.8.5-3 Cygwin 1.5.11 -rw-r--r-- 1 earl mkpasswd 7 Nov 4 11:10 foo.txt

RE: Perl binmode problem on text mount

2004-11-04 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Christopher Faylor > Sent: 04 November 2004 19:05 > On Thu, Nov 04, 2004 at 06:52:03PM -, Dave Korn wrote: > >> -Original Message- > >> From: cygwin-owner On Behalf Of Earl Chew > >> Sent: 04 November 2004 18:40 > >> The p

Re: Perl binmode problem on text mount

2004-11-04 Thread Christopher Faylor
On Thu, Nov 04, 2004 at 11:08:17AM -0800, Yitzchak Scott-Thoennes wrote: >On Thu, Nov 04, 2004 at 06:52:03PM -, Dave Korn <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] /win/textmode/c> od -c foo.txt >> 000 H e l l o \n >> 006 >> [EMAIL PROTECTED] /win/textmode/c> od -c < fo

Re: Perl binmode problem on text mount

2004-11-04 Thread Yitzchak Scott-Thoennes
On Thu, Nov 04, 2004 at 06:52:03PM -, Dave Korn <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] /win/textmode/c> od -c foo.txt > 000 H e l l o \n > 006 > [EMAIL PROTECTED] /win/textmode/c> od -c < foo.txt > 000 H e l l o \r \n > 007 > [EMAIL PROTECTED] /win

Re: Perl binmode problem on text mount

2004-11-04 Thread Christopher Faylor
On Thu, Nov 04, 2004 at 06:52:03PM -, Dave Korn wrote: >> -Original Message- >> From: cygwin-owner On Behalf Of Earl Chew >> Sent: 04 November 2004 18:40 > >> Christopher Faylor wrote: >> > You are missing the fact that the OP was reporting a real >> bug, apparently. >> >> To confirm,

RE: Perl binmode problem on text mount

2004-11-04 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Earl Chew > Sent: 04 November 2004 18:40 > Christopher Faylor wrote: > > You are missing the fact that the OP was reporting a real > bug, apparently. > > To confirm, I ran the program: > > binmode STDOUT; > print "Hello\

Re: Perl binmode problem on text mount

2004-11-04 Thread Earl Chew
Christopher Faylor wrote: You are missing the fact that the OP was reporting a real bug, apparently. To confirm, I ran the program: binmode STDOUT; print "Hello\n"; using Perl 5.6.1-2 on Cygwin 1.5.11: perl foo.pl > foo.txt ; od -c foo.txt 000 H e l l o \r \n

Re: Perl binmode problem on text mount

2004-11-04 Thread Christopher Faylor
On Thu, Nov 04, 2004 at 12:28:33PM -0500, Igor Pechtchanski wrote: >On Thu, 4 Nov 2004, Christopher Faylor wrote: > >> On Wed, Nov 03, 2004 at 09:21:50PM -0800, Earl Chew wrote: >> >Igor Pechtchanski wrote: >> >>On Wed, 3 Nov 2004, Earl Chew wrote: >> >> >> >>>This code used to work on Perl 5.6.1-2

Re: Perl binmode problem on text mount

2004-11-04 Thread Igor Pechtchanski
On Thu, 4 Nov 2004, Christopher Faylor wrote: > On Wed, Nov 03, 2004 at 09:21:50PM -0800, Earl Chew wrote: > >Igor Pechtchanski wrote: > >>On Wed, 3 Nov 2004, Earl Chew wrote: > >> > >>>This code used to work on Perl 5.6.1-2 on Cygwin 1.3.10. > >>> > >>>I've now moved to Perl 5.8.5-3 on Cygwin 1.5

Re: Perl binmode problem on text mount

2004-11-04 Thread Christopher Faylor
On Wed, Nov 03, 2004 at 09:21:50PM -0800, Earl Chew wrote: >Igor Pechtchanski wrote: >>On Wed, 3 Nov 2004, Earl Chew wrote: >> >>>This code used to work on Perl 5.6.1-2 on Cygwin 1.3.10. >>> >>>I've now moved to Perl 5.8.5-3 on Cygwin 1.5.11. >>> >>>Here is the Perl program: >>> >>> binmode STD

Re: Perl binmode problem on text mount

2004-11-03 Thread Earl Chew
Igor Pechtchanski wrote: On Wed, 3 Nov 2004, Earl Chew wrote: This code used to work on Perl 5.6.1-2 on Cygwin 1.3.10. I've now moved to Perl 5.8.5-3 on Cygwin 1.5.11. Here is the Perl program: binmode STDOUT; print "Hello\n"; 1. Output to file on text mount perl foo.pl > fo

Re: Perl binmode problem on text mount

2004-11-03 Thread Igor Pechtchanski
On Wed, 3 Nov 2004, Earl Chew wrote: > This code used to work on Perl 5.6.1-2 on Cygwin 1.3.10. > > I've now moved to Perl 5.8.5-3 on Cygwin 1.5.11. > > Here is the Perl program: > > binmode STDOUT; > print "Hello\n"; > > 1. Output to file on text mount > > perl foo.pl > foo.txt

Perl binmode problem on text mount

2004-11-03 Thread Earl Chew
This code used to work on Perl 5.6.1-2 on Cygwin 1.3.10. I've now moved to Perl 5.8.5-3 on Cygwin 1.5.11. Here is the Perl program: binmode STDOUT; print "Hello\n"; 1. Output to file on text mount perl foo.pl > foo.txt ; od -c foo.txt 000 H e l l o \r \n