New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl binmode problem on cygwin text mount #7581
Comments
From earl_chew@agilent.comCreated by earl_chew@agilent.comPerl v5.8.5 does not correct set cygwin binmode when dealing binmode STDOUT; Perl v5.6.1 does not have this problem: perl foo.pl > foo.txt ; od -c foo.txt ; ls -l foo.txt 0000000 H e l l o \r \n # Perl 5.8.5-3 Cygwin 1.5.11 0000000 H e l l o \n # Perl 5.6.1-2 Cygwin 1.3.10 0000000 H e l l o \n # Perl 5.6.1-2 Cygwin 1.5.11 The file sizes reported by ls confirm the extra \r reported by od. This problem can also be reproduced by using on a text mount: perl -e 'open OUT,">q.txt";binmode OUT;print OUT "Hello\n"' The output in q.txt (held on a text mount) differs between the http://www.cygwin.com/ml/cygwin/2004-11/msg00192.html and in the thread beginning: http://www.cygwin.com/ml/cygwin/2004-11/msg00131.html Perl Info
|
From @smpeters
I was not able to repliate this problem with the stock Cygwin Perl on $ perl foo.pl > foo.txt ; od -c foo.txt ; ls -l foo.txt STEVE@kirk ~/sandbox This is perl, v5.8.5 built for cygwin-thread-multi-64int Copyright 1987-2004, Larry Wall Perl may be copied only under the terms of either the Artistic License Complete documentation for Perl, including FAQ lists, should be found on STEVE@kirk ~/sandbox |
The RT System itself - Status changed from 'new' to 'open' |
From gp@familiehaase.deSteve Peters via RT wrote:
It fails when you are doing this in a textmode mounted direcotory. `mount | grep sandbox' shows what? IOf not textmode mounted, please try again after: $ mount -s -f -t X:/home/STEVE/sandbox /home/STEVE/sandbox Gerrit |
From earl_chew@agilent.comSteve Peters via RT wrote:
You must execute this on a text mount. The easiest way to achieve this is to ensure that you are on a For example, on my machine, if I have the following mounts: c:\cygwin\bin /bin To reproduce the problem, I go to drive d: (not listed in the mounts). % cd /cygdrive/d Earl |
Migrated from rt.perl.org#32342 (status was 'open')
Searchable as RT32342$
The text was updated successfully, but these errors were encountered: