Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: localeconv() unconditional NUMERIC toggle
It is possible to lockout changing the LC_NUMERIC locale. This is done in some printf cases where a recursive call could get the radix character wrong. But localeconv(), which could be called during this recursion on some platforms, toggles the locale briefly, without affecting the surrounding calls; so it can do the toggle unconditionally. The previous commit merely moved the functionality of localeconv() from POSIX.xs to locale.c. This commit expands upon that.
- Loading branch information
1 parent
967aed3
commit b3a32fd
Showing
1 changed file
with
30 additions
and
9 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