use warnings;
use Carp;
-require Exporter;
+use Exporter 'import';
require XSLoader;
-our @ISA = qw(Exporter);
-
our @EXPORT = qw(langinfo);
our @EXPORT_OK = qw(
YESSTR
);
-our $VERSION = '0.17';
+our $VERSION = '0.21';
XSLoader::load();
The langinfo() function queries various locale information that can be
used to localize output and user interfaces. It uses the current underlying
locale, regardless of whether or not it was called from within the scope of
-S<C<use locale>>. The langinfo() requires
+S<C<use locale>>. The langinfo() function requires
one numeric argument that identifies the locale constant to query:
if no argument is supplied, C<$_> is used. The numeric constants
appropriate to be used as arguments are exportable from I18N::Langinfo.
=back
+=head2 For systems without C<nl_langinfo>
+
Starting in Perl 5.28, this module is available even on systems that lack a
native C<nl_langinfo>. On such systems, it uses various methods to construct
what that function, if present, would return. But there are potential
=item C<CRNCYSTR>
The return may be incorrect for those rare locales where the currency symbol
-replaces the radix character.
-Send email to L<mailto:perlbug@perl.org> if you have examples of it needing
-to work differently.
+replaces the radix character. If you have examples of it needing to work
+differently, please file a report at L<https://github.com/Perl/perl5/issues>.
=item C<ALT_DIGITS>
-Currently this gives the same results as Linux does.
-Send email to L<mailto:perlbug@perl.org> if you have examples of it needing
-to work differently.
+Currently this gives the same results as Linux does. If you have examples of
+it needing to work differently, please file a report at
+L<https://github.com/Perl/perl5/issues>.
=item C<ERA_D_FMT>
L<perllocale>, L<POSIX/localeconv>, L<POSIX/setlocale>, L<nl_langinfo(3)>.
-The langinfo() is just a wrapper for the C nl_langinfo() interface.
+The langinfo() function is just a wrapper for the C nl_langinfo() interface.
=head1 AUTHOR