aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2017-06-30 15:20:48 +0200
committerErlang/OTP <[email protected]>2017-06-30 15:20:48 +0200
commit9d90c6e3217552bbc9801b52094c9b5c7539ace5 (patch)
tree2e70870f52bdd13fd559a72b26049ff58403e7a8
parent921c88d10ef1e92d30d71aea38af07d63a5c2611 (diff)
parent49349644863568fea49e41fe5daf8f20753041df (diff)
downloadotp-9d90c6e3217552bbc9801b52094c9b5c7539ace5.tar.gz
otp-9d90c6e3217552bbc9801b52094c9b5c7539ace5.tar.bz2
otp-9d90c6e3217552bbc9801b52094c9b5c7539ace5.zip
Merge branch 'siri/dbg/faulty-encoding-comment/OTP-14479' into maint-20
* siri/dbg/faulty-encoding-comment/OTP-14479: [dbg] Fix encoding comment
-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]);
({_, _}, _) ->