| @@ -1,27 +1,27 @@ | | | @@ -1,27 +1,27 @@ |
1 | $NetBSD: patch-aa,v 1.1 2010/11/23 13:53:54 haad Exp $ | | 1 | $NetBSD: patch-aa,v 1.2 2010/11/23 13:56:31 wiz Exp $ |
2 | Fix problem with gettext definition of LC_* variables. See | | 2 | Fix problem with gettext definition of LC_* variables. See |
3 | code below as example of warning. | | 3 | code below as example of warning. |
4 | | | 4 | |
5 | perl -MLocale::gettext -MPOSIX -e '' | | 5 | perl -MLocale::gettext -MPOSIX -e '' |
6 | Prototype mismatch: sub main::LC_ALL: none vs () at -e line 0 | | 6 | Prototype mismatch: sub main::LC_ALL: none vs () at -e line 0 |
7 | Prototype mismatch: sub main::LC_NUMERIC: none vs () at -e line 0 | | 7 | Prototype mismatch: sub main::LC_NUMERIC: none vs () at -e line 0 |
8 | Prototype mismatch: sub main::LC_TIME: none vs () at -e line 0 | | 8 | Prototype mismatch: sub main::LC_TIME: none vs () at -e line 0 |
9 | Prototype mismatch: sub main::LC_MONETARY: none vs () at -e line 0 | | 9 | Prototype mismatch: sub main::LC_MONETARY: none vs () at -e line 0 |
10 | Prototype mismatch: sub main::LC_CTYPE: none vs () at -e line 0 | | 10 | Prototype mismatch: sub main::LC_CTYPE: none vs () at -e line 0 |
11 | Prototype mismatch: sub main::LC_MESSAGES: none vs () at -e line 0 | | 11 | Prototype mismatch: sub main::LC_MESSAGES: none vs () at -e line 0 |
12 | Prototype mismatch: sub main::LC_COLLATE: none vs () at -e line 0 | | 12 | Prototype mismatch: sub main::LC_COLLATE: none vs () at -e line 0 |
13 | | | 13 | |
14 | Prblem fixed with patch from | | 14 | Problem fixed with patch from |
15 | | | 15 | |
16 | http://rt.cpan.org/Public/Bug/Display.html?id=35680 | | 16 | http://rt.cpan.org/Public/Bug/Display.html?id=35680 |
17 | | | 17 | |
18 | --- gettext.pm.orig 2005-06-01 03:11:16.000000000 +0000 | | 18 | --- gettext.pm.orig 2005-06-01 03:11:16.000000000 +0000 |
19 | +++ gettext.pm | | 19 | +++ gettext.pm |
20 | @@ -32,6 +32,7 @@ to internationalize software. | | 20 | @@ -32,6 +32,7 @@ to internationalize software. |
21 | =cut | | 21 | =cut |
22 | | | 22 | |
23 | use Carp; | | 23 | use Carp; |
24 | +use POSIX qw(:locale_h); | | 24 | +use POSIX qw(:locale_h); |
25 | | | 25 | |
26 | require Exporter; | | 26 | require Exporter; |
27 | require DynaLoader; | | 27 | require DynaLoader; |