develooper Front page | perl.perl5.porters | Postings from June 2004

Re: [perl #30420] The PERL built-in read command reads more than one byte

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
June 23, 2004 09:15
Subject:
Re: [perl #30420] The PERL built-in read command reads more than one byte
Message ID:
20040623161520.GB1292@efn.org
On Wed, Jun 23, 2004 at 09:33:42AM -0400, Jon Christensen <protecheng@comcast.net> wrote:
>    I would assert that this is an unacceptable BUG in perl 5.8.
> An entry warning about this behavior should be put into the FAQ, 
> and the default behavior corrected to enable backwards compatibility
> as soon as feasible.

"As soon as feasible" was in 5.8.1 a while ago.

See: http://search.cpan.org/~nwclark/perl-5.8.4/pod/perl581delta.pod#UTF-8_no_longer_default_under_UTF-8_locales

Your workarounds are to upgrade perl, use a non-utf8 locale, or use binmode
on the file handle.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About