Add API function Perl_langinfo()

Programming / Compilers / PERL - Karl Williamson [cpan.org] - 9 September 2017 23:27 EDT

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.

f741678 Add API function Perl_langinfo()
MANIFEST | 1 +
embed.fnc | 21 +-
embed.h | 33 +--
embedvar.h | 2 +
ext/XS-APItest/APItest.pm | 2 +-
ext/XS-APItest/APItest.xs | 7 +
ext/XS-APItest/t/locale.t | 106 +++++++-
intrpvar.h | 3 +
locale.c | 599 +++++++++++++++++++++++++++++++++++++++++++++-
perl.c | 5 +
perl_langinfo.h | 297 +++++++++++++++++++++++
pod/perldelta.pod | 8 +-
proto.h | 63 +++--
sv.c | 3 +
14 files changed, 1096 insertions(+), 54 deletions(-)

Upstream: perl5.git.perl.org


  • Share