develooper Front page | perl.perl5.porters | Postings from July 2017

Re: [perl #131685] Rename utf8::is_utf8() (and other functions)

Thread Previous | Thread Next
From:
Zefram
Date:
July 10, 2017 19:51
Subject:
Re: [perl #131685] Rename utf8::is_utf8() (and other functions)
Message ID:
20170710195102.GA1435@fysh.org
demerphq wrote:
>People have a hard time accepting it, but the utf8 flag tells parts of
>the internals to use different rules for certain operations,

Those are bugs.  In some cases they are bugs that we've decided we can't
just fix because of backcompat, so we add a flag to enable non-buggy
semantics and the bug lives on as default behaviour.

If a flag to distinguish between character strings and binary strings
were an intentional semantic feature, we'd need some rules to say
how the flag is to be set by operations that generate string outputs.
We've never done that.

-zefram

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