aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/io_SUITE.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-02-06 12:45:35 +0100
committerHans Bolinder <[email protected]>2013-02-11 15:23:24 +0100
commitb333d6f828b396e8174b3a5d2a6d34f91a872d42 (patch)
tree6e9a50eb167bcbec7391e637ecbcb496b9107a04 /lib/stdlib/test/io_SUITE.erl
parent771b21fa519a52a27134806e1d62440d8535f6b5 (diff)
downloadotp-b333d6f828b396e8174b3a5d2a6d34f91a872d42.tar.gz
otp-b333d6f828b396e8174b3a5d2a6d34f91a872d42.tar.bz2
otp-b333d6f828b396e8174b3a5d2a6d34f91a872d42.zip
[stdlib] Fix a bug concerning pretty printing and Unicode
Binaries were pretty printed too often.
Diffstat (limited to 'lib/stdlib/test/io_SUITE.erl')
-rw-r--r--lib/stdlib/test/io_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdlib/test/io_SUITE.erl b/lib/stdlib/test/io_SUITE.erl
index 4d2b53b265..05009fa570 100644
--- a/lib/stdlib/test/io_SUITE.erl
+++ b/lib/stdlib/test/io_SUITE.erl
@@ -2049,6 +2049,8 @@ otp_10302(Suite) when is_list(Suite) ->
"<<\"apel\"...>>" = pretty(<<"apelsin">>, 2),
"<<228,112,112,108>>" = fmt("~tp", [<<"äppl">>]),
"<<228,...>>" = fmt("~tP", [<<"äppl">>, 2]),
+ "<<0,0,0,0,0,0,1,0>>" = fmt("~p", [<<256:64/unsigned-integer>>]),
+ "<<0,0,0,0,0,0,1,0>>" = fmt("~tp", [<<256:64/unsigned-integer>>]),
Chars = lists:seq(0, 512), % just a few...
[] = [C || C <- Chars, S <- io_lib:write_char_as_latin1(C),