New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B::Deparse fails at UTF-8 in regexes #13343
Comments
From @maukeCreated by @mauke% perl -MO=Deparse -e 'use utf8; /€/' Expected: Perl Info
|
From @iabynOn Thu, Oct 10, 2013 at 01:46:59PM -0700, l.mai@web.de wrote:
Fixed with fea7fb2. I also noticed while looking into this, that Deparse (mostly) outputs $ p -MO=Deparse -e'$x="\x{100}"' This is because shortly after 5.6.0, the 'does this char need escaping' On the other hand, this has now been long-standing behaviour, and no-one The other thing that occurs to me is that perhaps Deparse should be clever -- |
The RT System itself - Status changed from 'new' to 'open' |
From zefram@fysh.orgDave Mitchell wrote:
We're better off with the deparser generating pure ASCII output.
If only "use utf8" had such a singular purpose. Actually, if "use utf8" -zefram |
From @TuxOn Wed, 23 Oct 2013 15:35:19 +0100, Zefram <zefram@fysh.org> wrote:
I agree, and even if most of my terminal sessions are fully UTF-8 <dreaming>Deparse could get optional featured behavior to instead
-- |
From @ikegamiOn Wed, Oct 23, 2013 at 10:25 AM, Dave Mitchell <davem@iabyn.com> wrote:
I figured it was that way for backwards compatibility, so I always use |
From @ikegamiOn Wed, Oct 23, 2013 at 10:35 AM, Zefram <zefram@fysh.org> wrote:
What else does it mean? |
From zefram@fysh.orgEric Brine wrote:
It's a lexical pragma visible to subroutines via caller(). Formerly the $ perl5.6.2 -lwe '$a="\x{cc}"; ($b)=($a= so code that tries to be portable between core versions may "use utf8" "use utf8" can also be used to ensure that the subroutines utf8::upgrade() -zefram |
@mauke - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#120182 (status was 'resolved')
Searchable as RT120182$
The text was updated successfully, but these errors were encountered: