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

Re: [perl #118795] locale changes in 5.19.1 break LC_NUMERIC handling

Thread Previous | Thread Next
From:
John Peacock
Date:
July 8, 2013 02:42
Subject:
Re: [perl #118795] locale changes in 5.19.1 break LC_NUMERIC handling
Message ID:
51DA2712.5090907@havurah-software.org
On 07/07/2013 09:20 PM, Karl Williamson wrote:
> If it is the same 07locale.t as is in the core,
> 68e8f474bc686a86c064b695b9c7400313d7af65 broke that one.  It was relying
> on buggy behavior.  It was failing to 'use locale'.  The updated version
> of that test file is attached; it includes new tests.

It was relying on extremely long-standing /buggy/ behaviour then (going 
back to the introduction of locale in 5.6.0 in fact).  The POD for POSIX 
makes no mention of having to 'use locale' in order for setlocale to 
function properly.

In fact, I would question whether the revised behaviour is correct 
(though it may be more convenient for _you_).  If the only way that 
setlocale() will function now is inside of 'use locale' then that should 
be POSIX's responsibility, not the caller's.

John

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