This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make I18N::Langinfo::langinfo take $_ as an argument if none is specified as
authorSteve Peters <steve@fisharerojo.org>
Wed, 18 Aug 2010 20:50:17 +0000 (15:50 -0500)
committerSteve Peters <steve@fisharerojo.org>
Wed, 18 Aug 2010 20:50:17 +0000 (15:50 -0500)
its documentation advertises.  Bump version for this change.

ext/I18N-Langinfo/Langinfo.pm
ext/I18N-Langinfo/Langinfo.xs

index 38d8f10..62c93e6 100644 (file)
@@ -73,7 +73,7 @@ our @EXPORT_OK = qw(
        YESSTR
 );
 
-our $VERSION = '0.03';
+our $VERSION = '0.04';
 
 sub AUTOLOAD {
     # This AUTOLOAD is used to 'autoload' constants from the constant()
@@ -100,6 +100,10 @@ sub AUTOLOAD {
 
 bootstrap I18N::Langinfo $VERSION;
 
+sub langinfo(_) {
+    return internal_langinfo(shift);
+}
+
 1;
 __END__
 
index c1da981..2cdc50c 100644 (file)
@@ -16,7 +16,7 @@ PROTOTYPES: ENABLE
 INCLUDE: const-xs.inc
 
 SV*
-langinfo(code)
+internal_langinfo(code)
        int     code
   CODE:
 #ifdef HAS_NL_LANGINFO