summaryrefslogtreecommitdiff
path: root/perl_langinfo.h
Commit message (Collapse)AuthorAgeFilesLines
* perl_langinfo.h: Fix typo in commentKarl Williamson2018-03-121-1/+1
|
* Change enum names for new locale function parametersKarl Williamson2018-03-121-288/+171
| | | | | | | | | | | | | | Earlier in the 5.27 series, I introduced Perl_langinfo which calls the system nl_langinfo() on platforms that have it, and emulates it otherwise. For each enum parameter 'foo', I made an equivalent parameter PERL_foo. I did this so that no conflicts would arise if any 'foo' were negative. This is less than ideal to have to rename the parameters. In looking further, I realized that perl has always excluded the possibility of negative values for 'foo', so my precaution is unnecessary. And before this new code is released is the time to fix up the interface.
* Perl_langinfo: Teach about YESSTR and NOSTRKarl Williamson2018-01-301-2/+12
| | | | | | These are items that nl_langinfo() used to be required to return, but are considered obsolete. Nonetheless, this drop-in replacement for that function should know about them for backward compatibility.
* Add API function Perl_langinfo()Karl Williamson2017-09-091-0/+297
This is designed to generally replace nl_langinfo() in XS code. It is thread-safer, hides the quirks of perl's LC_NUMERIC handling, and can be used on systems lacking nl_langinfo.