summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2013-05-27 20:15:21 +1000
committerRicardo Signes <rjbs@cpan.org>2013-05-28 09:56:57 -0400
commit69c551d20bba936c294621f99a4248f63ae58175 (patch)
tree2e61d8f1367690c99f6a106a978a2e9a1c8721fd /lib
parent70d50d2196e402f6ef35ba0f9f0098c917a29568 (diff)
downloadperl-69c551d20bba936c294621f99a4248f63ae58175.tar.gz
man perlrules doesn't always output "No manual entry for perlrules"
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. (cherry picked from commit 08a004e4d58edacd87d6e8a443a269a6658faf4c)
Diffstat (limited to 'lib')
-rw-r--r--lib/perl5db.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/perl5db.t b/lib/perl5db.t
index 81bd5da86e..58cc5ae0f2 100644
--- a/lib/perl5db.t
+++ b/lib/perl5db.t
@@ -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 =>