summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-12-07 15:09:23 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-12-07 15:09:23 +0000
commit915df47c6a00eb5a6b8d6051eb019773fc41d707 (patch)
tree72f6b65cbb2575389f2b04844277e7151a0a0028 /t
parent3d3d4f39342abc069c6470bf0947f2d00d3ead72 (diff)
parent6cb8f8aa0b354a4c64f58414ffb96b4138d3a098 (diff)
downloadperl-915df47c6a00eb5a6b8d6051eb019773fc41d707.tar.gz
Integrate again - can I catch up ?
p4raw-id: //depot/perlio@13516
Diffstat (limited to 't')
-rw-r--r--t/test.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index ca4af688dc..ac6bbb7938 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -263,6 +263,12 @@ sub BAILOUT {
}
+# A way to display scalars containing control characters and Unicode.
+sub display {
+ join("", map { $_ > 255 ? sprintf("\\x{%x}", $_) : chr($_) =~ /[[:cntrl:]]/ ? sprintf("\\%03o", $_) : chr($_) } unpack("U*", $_[0]));
+}
+
+
# A somewhat safer version of the sometimes wrong $^X.
BEGIN: {
eval {