aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-07 14:42:39 +0200
committerHans Bolinder <[email protected]>2017-06-09 09:11:14 +0200
commit5f53ac45b67410484336954c75442be3b49a6071 (patch)
tree17bdd24df38058a315a9d19e81cd67384ade2970 /lib/stdlib
parent6d80a38c876831aa141b58e757fbdf5663026f95 (diff)
downloadotp-5f53ac45b67410484336954c75442be3b49a6071.tar.gz
otp-5f53ac45b67410484336954c75442be3b49a6071.tar.bz2
otp-5f53ac45b67410484336954c75442be3b49a6071.zip
stdlib: Correct Unicode handling in escript
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/escript.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/src/escript.erl b/lib/stdlib/src/escript.erl
index f2629a47c2..2093916a7c 100644
--- a/lib/stdlib/src/escript.erl
+++ b/lib/stdlib/src/escript.erl
@@ -281,12 +281,12 @@ start(EscriptOptions) ->
end
catch
throw:Str ->
- io:format("escript: ~s\n", [Str]),
+ io:format("escript: ~ts\n", [Str]),
my_halt(127);
_:Reason ->
Stk = erlang:get_stacktrace(),
- io:format("escript: Internal error: ~p\n", [Reason]),
- io:format("~p\n", [Stk]),
+ io:format("escript: Internal error: ~tp\n", [Reason]),
+ io:format("~tp\n", [Stk]),
my_halt(127)
end.