diff options
author | Karl Williamson <khw@cpan.org> | 2018-01-01 23:03:34 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-01-30 22:35:09 -0700 |
commit | 4c68b8158cd1ae60d36ecf980d2cdf34a560ccaf (patch) | |
tree | 0a65da969af2512d75589e491d198124c95b2440 /sv.c | |
parent | 9821811fe1a93f19deb209a286ad4fae53a3ebb1 (diff) | |
download | perl-4c68b8158cd1ae60d36ecf980d2cdf34a560ccaf.tar.gz |
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.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -15223,6 +15223,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, #ifdef USE_LOCALE_NUMERIC PL_numeric_standard = proto_perl->Inumeric_standard; PL_numeric_underlying = proto_perl->Inumeric_underlying; + PL_numeric_underlying_is_standard = proto_perl->Inumeric_underlying_is_standard; #endif /* !USE_LOCALE_NUMERIC */ /* Did the locale setup indicate UTF-8? */ |