Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix querying locale without LC_NUMERIC on platform
This fixes GH #19890. This cleans up querying the current locale, broken by 996e6b9 on platforms without LC_NUMERIC(*). That commit was written before we required C99, and being able to move declarations to not be at the beginning of a block made me realize that things could be simplified by a bit of refactoring, which this commit does. (*): Lack of LC_NUMERIC can be simulated by using './Configure -Accflags="-DNO_LOCALE_NUMERIC'
- Loading branch information
1 parent
2c10e97
commit 6a7aca8
Showing
1 changed file
with
27 additions
and
15 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