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

[perl #113824] Regexp error messages are not UTF8-clean

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
June 18, 2013 23:39
Subject:
[perl #113824] Regexp error messages are not UTF8-clean
Message ID:
rt-3.6.HEAD-2552-1371598748-1740.113824-15-0@perl.org
On Tue Jun 18 13:09:32 2013, demerphq wrote:
> On 18 June 2013 21:47, Father Chrysostomos via RT
> <perlbug-followup@perl.org> wrote:
> > On Tue Jun 18 08:36:45 2013, demerphq wrote:
> >> On 18 June 2013 15:29, Father Chrysostomos via RT
> >> <perlbug-followup@perl.org> wrote:
> >> > And this is what it would look like in practice;
> >> >
> >> > Perl_croak("Couldn't twiggle the twoggle in \"%"UTF8f"\"",
> is_utf8, s);
> >> >
> >> > UTF8f could take two arguments, the first being a boolean.  That
> would
> >> > be the most useful way to implement it.
> >>
> >> Very nice idea! ++FC.
> >
> > We need the length, too.  Which order should they come?  is_utf8,
> len, str?
> 
> Well that is the order I would expect for a sprintf() type format like
> this.

I have implemented that in commit 670610ebb, providing groundwork for
fixing *this* bug.

So I think this ticket should stay open until it is fixed, since it is
clearly (to me at least) not a won’t-fix any more.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=113824

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