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
the -p flag ignores PERLIO and seems entirely unchangeable #11683
Comments
From @wchristianCreated by @wchristianReproduction Steps: 1. run windows system Actual Result: The file newline2 contains \r\n. Expected Result: The file newline2 should contain a single \n. Comments: Besides -p ignoring the PERLIO env variable neither Tony Cook nor Perl Info
|
From @wchristianRelated and much more detailed, tchrist stumbled over this as well: http://groups.google.com/group/perl.perl5.porters/browse_thread/ |
The RT System itself - Status changed from 'new' to 'open' |
From @ikegamiOn Sun, Oct 2, 2011 at 7:17 AM, Christian Walde
-p seems o be a red herring.
(4 = "f","o","o",LF) So the problem is that PERLIO doesn't affect STDOUT. There may be similar (I used 5.14.0) |
From @LeontOn Sun, Oct 2, 2011 at 9:08 PM, Eric Brine <ikegami@adaelis.com> wrote:
No, it does affect STDOUT and friends, it just does the wrong thing: I have a hunch what's happening, the PERLIO variables triggers a code Leon T |
From @craigberryOn Sun, Oct 2, 2011 at 5:24 PM, Leon Timmermans <fawaka@gmail.com> wrote:
Yes, that looks like exactly what it's doing: 1191 if (s) { from http://perl5.git.perl.org/perl.git/blob/HEAD:/perlio.c#l1191 where s is the string containing what PERLIO translated to. |
From @ikegamiOn Sun, Oct 2, 2011 at 6:24 PM, Leon Timmermans <fawaka@gmail.com> wrote:
raw has long done more than it's documented as doing. The following didn't perl -wE"{ open my I guess the fix wasn't complete. (which on windows moonlights as crlf layer). Check the output of «PERLIO=raw perl -E 'say STDERR join "\n",
On Windows, that shows the :crlf gone. Thanks for helping me refine the problem. - Eric |
From @LeontOn Mon, Oct 3, 2011 at 1:04 AM, Craig A. Berry <craig.a.berry@gmail.com> wrote:
When PerlIO is initialized, the standard in/out/err are all explicitly Leon |
Migrated from rt.perl.org#100496 (status was 'open')
Searchable as RT100496$
The text was updated successfully, but these errors were encountered: