Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: Refactor a static function
S_new_numeric() is called after the LC_NUMERIC category is changed, to update various ancillary information Perl keeps. This reorders the function so that on POSIX 2008 platforms, the numeric object is created earlier. This allows for fewer operations on those platforms, as we already have the correct value in place for querying what the radix and thousands separator characters are. Explanatory comments are also added.
- Loading branch information
1 parent
28162d1
commit e2c7260
Showing
1 changed file
with
50 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters