1.7: help2man perl problem?
Reini Urban
rurban@x-ray.at
Wed Aug 5 22:10:00 GMT 2009
Lee Rothstein schrieb:
> When I run 'help2man' on a bash script that I wrote, I get the
> following error messages:
>
> Constant subroutine main::LC_ALL redefined at
> /usr/lib/perl5/5.10/Exporter.pm line 66.
> at /bin/help2man line 38
> Prototype mismatch: sub main::LC_ALL () vs none at
> /usr/lib/perl5/5.10/Exporter.pm line 66.
> at /bin/help2man line 38
>
> 'help2man' does, however, generate a valid 'man' "page", if
> somewhat mis-formatted to my taste.
>
> Is my perl configuration off, or what?
No, that's known problem for old perl programs with 5.10, in this case
help2man. Just google "LC_ALL () vs none"
--- help2man.PL
+++ help2man.PL
@@ -34,7 +34,7 @@ my $have_gettext;
BEGIN {
eval {
require Locale::gettext;
- Locale::gettext->import;
+ Locale::gettext->import (qw(gettext textdomain));
$have_gettext = 1;
};
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list