develooper Front page | perl.perl5.porters | Postings from March 2013

Re: [perl #117355] [lu]cfirst don't respect 'use bytes'

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
March 26, 2013 01:50
Subject:
Re: [perl #117355] [lu]cfirst don't respect 'use bytes'
Message ID:
20130326015034.GA28606@fernweh.plasmasturm.org
* Brian Fraser <perlbug-followup@perl.org> [2013-03-26 01:50]:
> $_ = "\x{30cb}";
> use Devel::Peek;
> use bytes;
> Dump $_ for uc, lc, CORE::fc, ucfirst, lcfirst;
>
> ucfirst & lcfirst return a UTF-8 flagged scalar, while the first three
> return bytes.

Is it worth fixing something to follow a semantic that itself is broken
as designed?

I’m not sure if we had an explicit consensus about bytes.pm being highly
discouraged, the way we had about encoding.pm deserving deprecation, but
I would be happy if we could move it in that direction; and the farther,
the happier.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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