projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5461259
)
More heuristics to make warnings.t pass under different
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 2 Nov 2006 10:06:37 +0000
(10:06 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 2 Nov 2006 10:06:37 +0000
(10:06 +0000)
combinations of PERL_UNICODE / locale
p4raw-id: //depot/perl@29184
t/lib/common.pl
patch
|
blob
|
history
diff --git
a/t/lib/common.pl
b/t/lib/common.pl
index
6dad282
..
e188ab8
100644
(file)
--- a/
t/lib/common.pl
+++ b/
t/lib/common.pl
@@
-58,7
+58,11
@@
undef $/;
plan tests => (scalar(@prgs)-$files);
-my $utf8_ok = exists $ENV{PERL_UNICODE} && $ENV{PERL_UNICODE} =~ m{^$|[Dio]} ? 1 : 0;
+my $utf8_ok = exists $ENV{PERL_UNICODE} && (
+ $ENV{PERL_UNICODE} =~ m{[Dio]}
+ || ($ENV{PERL_UNICODE} eq ""
+ && ($ENV{LC_ALL} =~ /\butf-?8\b/i || $ENV{LANG} =~ /\butf-?8\b/i))
+);
for (@prgs){
unless (/\n/)