#!./perl -w
BEGIN {
chdir 't';
}
print "1..0 # Skip: Encode was not built\n";
exit 0;
}
print "1..0 # Skip: EBCDIC\n";
exit 0;
}
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
print "1..0 # Skip: no dynamic loading on miniperl, no Encode\n";
exit 0;
}
}
use Encode;
use strict;
# %mbchars = (encoding => { bytes => utf8, ... }, ...);
# * pack('C*') is expected to return bytes even if ${^ENCODING} is true.
'big-5' => {
},
'euc-jp' => {
},
'shift-jis' => {
},
);
# 4 == @char; paired tests inside 3 nested loops,
# plus extra pair of tests in a loop, plus extra pair of tests.
local $/ = $rs;
# The answer will always be a length in utf8, even if the
# scalar was encoded with a different length
} else {
$return = 0;
}
}
}
# chomp should not stringify references unless it decides to modify
# them
$_ = [];
}
$/ = ")"; # the last char of something like "ARRAY(0x80ff6e4)"
}