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
John Peacock
July 8, 2013 02:42
Re: [perl #118795] locale changes in 5.19.1 break LC_NUMERIC handling
Message ID:
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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About