Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: Create new convenience macro
glibc doesn't have the querylocale() function, available on some other platforms, such as Darwin and *BSD. However, it instead has the equivalent functionality available through an undocumented feature. This commit allows someone in the know to compile perl to use that feature, and wraps its API with a macro so that the calling code doesn't have to be aware of the different APIs of the two methods. That macro's definition is now done in perl.h, as future commits will use it in other files. Since this is an undocumented feature, I am not currently documenting this wrapper availability. However, it has been used in the field without complaint for a couple of releases, as follows: A more cumbersome substitute method continues to be used to get what it does. But in the past both methods were tried and the program died if they yielded different results. Since no one has complained, I'm fairly confident it works. But sill I'm deferring its more general use.
- Loading branch information
1 parent
e40214f
commit af0b63e
Showing
2 changed files
with
33 additions
and
8 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
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