develooper Front page | perl.perl5.porters | Postings from October 2017

[perl #131155] string-to-number coercion caching broken by locale

Thread Previous
From:
James E Keenan via RT
Date:
October 1, 2017 02:30
Subject:
[perl #131155] string-to-number coercion caching broken by locale
Message ID:
rt-4.0.24-22064-1506825047-1041.131155-15-0@perl.org
On Sat, 30 Sep 2017 23:30:45 GMT, zefram@fysh.org wrote:
> James E Keenan via RT wrote:
> > Are these the results I should have expected for these two versions
> > of perl?
> 
> Those results match what I see and what I described in the bug report.
> 
> -zefram

Thanks.  Bisection indicates that the following is the commit where the behavior changed:

#####
commit 21431899afb43e8c4b449a110e568818ab0ef051
Author:     Karl Williamson <khw@cpan.org>
AuthorDate: Sun Jun 1 16:02:24 2014 -0600
Commit:     Karl Williamson <khw@cpan.org>
CommitDate: Thu Jun 5 11:23:00 2014 -0600

    Make sure locale set right for radix parsing
    
    I haven't found a test case this fails for in v5.20, but I'm sure there is one.  But two commits from now would fail if this wasn't done.

#####

Whether the change in behavior was good, bad, or some mix thereof, is up for discussion.

Thank you very much.

-- 
James E Keenan (jkeenan@cpan.org)

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

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About