This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid some unnecessary changing of locales
authorKarl Williamson <khw@cpan.org>
Tue, 2 Jan 2018 06:03:34 +0000 (23:03 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 31 Jan 2018 05:35:09 +0000 (22:35 -0700)
commit4c68b8158cd1ae60d36ecf980d2cdf34a560ccaf
tree0a65da969af2512d75589e491d198124c95b2440
parent9821811fe1a93f19deb209a286ad4fae53a3ebb1
Avoid some unnecessary changing of locales

The LC_NUMERIC locale category is kept so that generally the decimal
point (radix) is a dot.  For some (mostly) output purposes, it needs to
be swapped into the program's current underlying locale so that a
non-dot can be printed.

This commit changes things so that if the current underlying locale uses
a decimal point, the swap doesn't happen, as it's not needed.
embedvar.h
intrpvar.h
locale.c
perl.h
sv.c