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

Re: Proposal: Rename utf8::is_utf8() to utf8::is_upgraded()

Thread Previous | Thread Next
Ben Bullock
February 20, 2017 23:40
Re: Proposal: Rename utf8::is_utf8() to utf8::is_upgraded()
Message ID:
On 21 February 2017 at 08:19, Leon Timmermans <> wrote:

> I think it would be helpful to explicitly mention that the whole «encode if
> is_utf8» is essentially always wrong. And to link to a longer explanation in
> perlunisomething of why it is wrong.

This idiom appears in Perl core modules like this:

as well as CPAN modules like this:

If this is considered wrong, perhaps a useful first step would be to remove it
from the core modules and file bug reports against the erroneous CPAN modules
such as CGI above, or this one:

Briefly glancing through this list,

I don't see evidence for the statement about "broken XS modules" which
was used to justify this change, since none of the above seems to be dealing
with outputs from XS modules.

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