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

Re: [perl #108378] Referring to floating $x under locale changesits string representation

Thread Previous
From:
Karl Williamson
Date:
June 17, 2013 02:56
Subject:
Re: [perl #108378] Referring to floating $x under locale changesits string representation
Message ID:
51BE7AD3.8050100@khwilliamson.com
On 06/16/2013 08:18 PM, Father Chrysostomos via RT wrote:
> On Sun Jun 16 17:40:05 2013, jkeenan wrote:
>> On Mon Jun 10 15:00:45 2013, perl.p5p@rjbs.manxome.org wrote:
>>> * Jan Dubois <jand@activestate.com> [2013-06-10T04:07:32]
>>>>
>>>> Sorry, it was my incomplete reading of perllocale.pod that led me to
>>>> believe that only printf() would follow the current locale. After
>>>> re-reading it, I find the documentation self-contradictory:
>>>> [...]
>>>
>>> ...and sorry about my reply, to which you're replying, as it was late
>>> to the
>>> game and you'd already covered this ground.  I had not fully caught up
>>> in the
>>> thread when I wrote it.
>>
>>
>> Is this the same problem as
>> https://rt.perl.org/rt3/Ticket/Display.html?id=82418 ?
>
> No, I don’t think so.  That one has to do with constant folding, and
> whether the number will be stringified at compile time or run time.
>

Also note that the author of #82418 expects that you don't need a 'use 
locale' to have locale effects.  It is (still) a bug that any of the 
examples in this ticket output a comma radix character.

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