summaryrefslogtreecommitdiff
path: root/t/op/misc.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/misc.t')
-rwxr-xr-xt/op/misc.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/op/misc.t b/t/op/misc.t
index e55e18a0a2..3cfb667ec8 100755
--- a/t/op/misc.t
+++ b/t/op/misc.t
@@ -727,10 +727,13 @@ Bar=ARRAY(0x...)
# 20010407.008 sprintf removes utf8-ness
$a = sprintf "\x{1234}";
printf "%x %d\n", unpack("U*", $a), length($a);
+$a = sprintf "%s", "\x{5678}";
+printf "%x %d\n", unpack("U*", $a), length($a);
$a = sprintf "\x{1234}%s", "\x{5678}";
printf "%x %x %d\n", unpack("U*", $a), length($a);
EXPECT
1234 1
+5678 1
1234 5678 2
########
# keep this last - doesn't seem to work otherwise?