Skip to content

Commit 648841e

Browse files
committed
op/split.t: Generalize to pass on EBCDIC systems
1 parent 4ee6fa1 commit 648841e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

t/op/split.t

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ BEGIN {
1010
plan tests => 219;
1111

1212
$FS = ':';
13+
our $IS_ASCII;
1314

1415
$_ = 'a:b:c';
1516

@@ -728,8 +729,12 @@ SKIP: {
728729

729730
# gh18032: check that `split " "` does not get converted to `split ""`
730731
SKIP: {
731-
my @skipwhite= ('split " "', 'split "\x20"', 'split "\N{SPACE}"',
732-
'split "$e$sp$e"', 'split');
732+
my @skipwhite = ( 'split " "',
733+
($::IS_ASCII) ? 'split "\x20"' : 'split "\x40"',
734+
'split "\N{SPACE}"',
735+
'split "$e$sp$e"',
736+
'split'
737+
);
733738
my @noskipwhite= (
734739
'split / /', 'split m/ /', 'split qr/ /',
735740
'split /$e$sp$e/', 'split m/$e$sp$e/', 'split qr/$e$sp$e/'

0 commit comments

Comments
 (0)