-
Notifications
You must be signed in to change notification settings - Fork 571
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
PerlIO, STDERR and "encoding" layer problem #12906
Comments
From victor@vsespb.ruCreated by victor@vsespb.ruThere is a ticket for Encode module DANKOGAI suggest that it's actually PerlIO documentation problem and that should Thus I submit this bug here. This perldoc http://perldoc.perl.org/PerlIO.html does not mention STDERR. Also open pragma doc http://perldoc.perl.org/open.html advertises use I find also problem in the fact that carp/die/croak cannot be used now (othere related topics https://rt.cpan.org/Ticket/Display.html?id=84282 Perl Info
|
From @LeontOn Mon, Apr 8, 2013 at 8:33 PM, Victor Efimov <perlbug-followup@perl.org> wrote:
Saying "PerlIO can't be used with STDERR" is outright silly, because
How about setting the fallback value (somewhat documented in Leon |
The RT System itself - Status changed from 'new' to 'open' |
From victor@vsespb.ruHello. Seems it helps indeed. One of examples which hangs (I was able to reproduce only on FreeBSD 9) perl -MEncode -MCarp -e 'binmode STDERR, ":encoding(koi8-r)"; croak With fallback: perl -MEncode -MCarp -MPerlIO::encoding -e 'use strict; does not hang. Thanks! I still think it should be documented better. BTW Possible example of hang in real world application (that's how When "confess" is used, it prints a stacktrace with function parameters. On Tue Apr 23 07:02:18 2013, LeonT wrote:
|
From victor@vsespb.ruAh, no, seems it didn't help. Here is another PoC #!/usr/bin/perl $PerlIO::encoding::fallback = Encode::FB_QUIET; for my $a1 (qw/а б в й ё/) { On Fri Apr 26 06:38:36 2013, vsespb wrote:
|
From @LeontOn Thu, May 9, 2013 at 9:16 PM, Victor Efimov via RT
That encode there is wrong. It's converting a unicode string into a Regardless of that this does seem to trigger an infinite loop of some Leon |
From victor@vsespb.ruI know that encode here is wrong. This is just example how Perl hangs on Also, this hangs with FB_QUIET and without FB_QUIET. On Thu May 09 13:10:36 2013, LeonT wrote:
|
From @LeontOn Thu, May 9, 2013 at 10:15 PM, Victor Efimov via RT
Though it seems for different reasons. On handles other than STDERR it What I think is happening is this: :encoding::Flush calls Encode, I'm not sure how to solve that issue. Making STDERR always FB_QUIET Leon |
From victor@vsespb.ruOk, thanks for the information! On Thu May 09 14:55:33 2013, LeonT wrote:
|
Migrated from rt.perl.org#117537 (status was 'open')
Searchable as RT117537$
The text was updated successfully, but these errors were encountered: