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

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

Thread Previous | Thread Next
From:
demerphq
Date:
June 7, 2012 10:16
Subject:
Re: [perl #113088] Data::Dumper::Useqq('utf8') broken [PATCH]
Message ID:
CANgJU+XgTwnx9b7vMx9c5_TXpb1f1JkuPVs=_FR7GS4GzvxgLw@mail.gmail.com
On 7 June 2012 17:33, Aristotle Pagaltzis <pagaltzis@gmx.de> wrote:
> * Jim Avera <perlbug-followup@perl.org> [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
wrong.

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

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