This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
man perlrules doesn't always output "No manual entry for perlrules"
authorTony Cook <tony@develop-help.com>
Mon, 27 May 2013 10:15:21 +0000 (20:15 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 27 May 2013 10:15:21 +0000 (20:15 +1000)
especially when the locale is non-English.

Hopefully all Linux dists are producing the same message, and force the
language to "C" so we get English messages.

lib/perl5db.t

index 81bd5da..58cc5ae 100644 (file)
@@ -2637,7 +2637,12 @@ sub _calc_trace_wrapper
 
 # Test the perldoc command
 # We don't actually run the program, but we need to provide one to the wrapper.
+SKIP:
 {
+    $^O eq "linux"
+        or skip "man errors aren't especially portable", 1;
+    local $ENV{LANG} = "C";
+    local $ENV{LC_MESSAGE} = "C";
     my $wrapper = DebugWrap->new(
         {
             cmds =>