This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
POSIX:strtod() should restore the locale it changed
authorKarl Williamson <public@khwilliamson.com>
Thu, 12 Dec 2013 06:04:40 +0000 (23:04 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 4 Jan 2014 20:33:05 +0000 (13:33 -0700)
commit371d5d44b054ca1540da57f7be95194f1d92f449
treebe1fd55dd560697b9e8f56965076e81daedd13f6
parenta2287a13f4e99299ebd9c06f9f98e1bdc7f5089e
POSIX:strtod() should restore the locale it changed

Prior to this commit, the locale remained as strtod() set it to.  I
could not find a case where this actually was a problem, as the other
code is good about checking for and changing the locale where needed.
But uses of atoi(), strtol() in locales where there are spaces in
numbers likely would break.
ext/POSIX/POSIX.xs
ext/POSIX/lib/POSIX.pm
perl.h
t/run/locale.t