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

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

Thread Previous | Thread Next
July 10, 2017 19:51
Re: [perl #131685] Rename utf8::is_utf8() (and other functions)
Message ID:
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.


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