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

Re: [perl #113088] Data::Dumper::Useqq('utf8') broken [PATCH]

Thread Previous | Thread Next
June 7, 2012 10:16
Re: [perl #113088] Data::Dumper::Useqq('utf8') broken [PATCH]
Message ID:
On 7 June 2012 17:33, Aristotle Pagaltzis <> wrote:
> * Jim Avera <> [2012-05-26 03:10]:
>> However it seems wrong to test for #chars != #bytes, because binary
>> data _should_ be passed as byte strings, that is, with Perl's internal
>> utf8 flag off.
> Disagree.
> The UTF8 flag is completely irrelevant to a string’s semantics.

Please stop saying this. It is the same flawed logic that means I cant
send a bitvector in JSON reliably, which is a problem we DO NOT WANT
in Perl.

It is simply not true. If a string contains binary data then it is
binary, and treating it as utf8 in any form is completely and utterly

perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About