aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/src/dbg.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-07-03 17:51:54 +0200
committerSiri Hansen <[email protected]>2017-07-03 17:51:54 +0200
commitea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c (patch)
tree1d5882fb8e23b9286bafb3ee4d1b9b80fb50f356 /lib/runtime_tools/src/dbg.erl
parentf3c1cdd43c4f45bd0333b2ddcc9d78cbcf4c6cf0 (diff)
parentc5a6e3d99144c94ef557da5787c76f12737044d9 (diff)
downloadotp-ea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c.tar.gz
otp-ea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c.tar.bz2
otp-ea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c.zip
Merge branch 'maint'
Diffstat (limited to 'lib/runtime_tools/src/dbg.erl')
-rw-r--r--lib/runtime_tools/src/dbg.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/runtime_tools/src/dbg.erl b/lib/runtime_tools/src/dbg.erl
index e82f27896d..92938ed5c1 100644
--- a/lib/runtime_tools/src/dbg.erl
+++ b/lib/runtime_tools/src/dbg.erl
@@ -268,7 +268,7 @@ wtp(FileName) ->
{error, Reason} ->
{error, Reason};
{ok, File} ->
- io:put_chars(File, "%% coding: utf8\n"),
+ io:format(File, "%% ~s\n", [epp:encoding_to_string(utf8)]),
pt_doforall(fun ({_, Val}, _) when is_list(Val) ->
io:format(File, "~tp.~n", [Val]);
({_, _}, _) ->