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

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

Thread Previous | Thread Next
From:
Eric Brine
Date:
August 12, 2013 20:57
Subject:
Re: [perl #117355] [lu]cfirst don't respect 'use bytes'
Message ID:
CALJW-qFN3UAu2Y+XdABnORADKbLu+7WOUuPWHUOA0QQ8JrPHmA@mail.gmail.com
On Mon, Aug 12, 2013 at 4:08 PM, Victor Efimov via RT <
perlbug-followup@perl.org> wrote:
>
> sub try_drop_utf8_flag
> {
>   Encode::_utf8_off($_[0]) if utf8::is_utf8($_[0]) &&
> (bytes::length($_[0]) == length($_[0]));
> }


That's just C<< utf8::downgrade($_[0], 1) >>

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