summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-12-11 23:15:25 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-04 13:33:06 -0700
commitf6dde82eadcc6685581969cf33932bba37fed9d1 (patch)
tree63a7aed7570e54c21f23a8e7d02fadd8bc44d3f7 /numeric.c
parent90d6b40e1850c1b0849446bc02c3ffe9a376aaee (diff)
downloadperl-f6dde82eadcc6685581969cf33932bba37fed9d1.tar.gz
toke.c: Set locale for all scan_num() calls; restore instead of reset
One call of Perl_scan_num changes the locale around it. However, this function is called in several places, including from outside the file. It is better to set the locale within scan_num() at the point where it matters. And, instead of setting the locale unconditionally, it is better to change it only if it needs to be changed, and restore it to the original. Otherwise the locale can be changed to something unexpected.
Diffstat (limited to 'numeric.c')
0 files changed, 0 insertions, 0 deletions