Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

  (email not shown publicly)

I work for MessageLabs [] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Thursday January 22, 2004
05:19 PM

PerlIO hang bug

[ #16961 ]

Readers of my blog (those that haven't gone elsewhere with my hiatus) will recall I discovered a bug where I could make perl hang doing perlio stuff. Well I now have a minimal test case:

use Encode;
use File::Temp qw(tempfile);
my $fh = tempfile();
print $fh map { pack("H*", $_) } qw(94);
seek($fh, 0, 0);
binmode($fh, ":encoding(iso-2022-jp)") || die $!;
while (<$fh>) { print } # hangs in <$fh>

I'll do up a perlbug when is back in action.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.