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

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

Thread Previous | Thread Next
Eric Brine
March 26, 2013 09:58
Re: [perl #117355] [lu]cfirst don't respect 'use bytes'
Message ID:
On Mon, Mar 25, 2013 at 9:50 PM, Aristotle Pagaltzis <>wrote:

> * Brian Fraser <> [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 being highly
> discouraged

"and use of this module for anything other than debugging purposes is
strongly discouraged."

> , the way we had about deserving deprecation,

"This module is deprecated under perl 5.18. It uses a mechanism provided by
perl that is deprecated under 5.18 and higher, and may be removed in a
future version."

At least publicly, it's not quite the same level.

but I would be happy if we could move it in that direction; and the
> farther, the happier.

Indeed. If you have to deal with a buggy module, should be using
utf8::downgrade instead.

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