Re: perlio probs
[email protected] (Marvin Humphrey)
| Newsgroups | perl.unicode |
|---|---|
| Message-ID | <[email protected]> |
On Sep 22, 2005, at 10:28 PM, Martin Hosken wrote:
> Does anyone have any experience of a bug I've encountered in 5.8.7
> only whereby occasionally (which is what makes it hard to report)
> this type of code:
>
> $fh = IO::File->new("< input.dat") || die;
> binmode $fh;
> # lots of code, even to different package
>
> $fh->read($dat, $num_bytes);
>
> does utf-8 conversion on $dat !!
It's a shot in the dark, but is there any correlation between the
screwup and the value of the utf8 flag on $dat prior to the read call?
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/