)
AM_STR PM_STR T_FMT_AMPM
for the locales for which it makes sense to have ante meridiem and post
meridiem time formats,
CODESET CRNCYSTR RADIXCHAR
for the character code set being used (such as "ISO8859-1", "cp850",
"koi8-r", "sjis", "utf8", etc.), for the currency string, for the
radix character used between the integer and the fractional part
of decimal numbers (yes, this is redundant with POSIX::localeconv())
YESSTR YESEXPR NOSTR NOEXPR
for the affirmative and negative responses and expressions, and
ERA ERA_D_FMT ERA_D_T_FMT ERA_T_FMT
for the Japanese Emperor eras (naturally only defined under Japanese locales).
See your L for more information about the available
constants. (Often this means having to look directly at the
F C header file.)
Note that unfortunately none of the above constants are guaranteed
to be available on a particular platform. To be on the safe side
you can wrap the import in an eval like this:
eval {
require I18N::Langinfo;
I18N::Langinfo->import(qw(langinfo CODESET));
$codeset = langinfo(CODESET()); # note the ()
};
if (!$@) { ... failed ... }
=head2 EXPORT
By default only the C function is exported.
=head1 SEE ALSO
L, L, L, L.
The langinfo() is just a wrapper for the C nl_langinfo() interface.
=head1 AUTHOR
Jarkko Hietaniemi, Ejhi@hut.fiE
=head1 COPYRIGHT AND LICENSE
Copyright 2001 by Jarkko Hietaniemi
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut