aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/src/dbg.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-06-21 12:18:52 +0200
committerSiri Hansen <[email protected]>2017-06-29 16:34:57 +0200
commit49349644863568fea49e41fe5daf8f20753041df (patch)
treeef1015fbfc64c0efc0f961494dce74fd0cbb626f /lib/runtime_tools/src/dbg.erl
parent040bdce67f88d833bfb59adae130a4ffb4c180f0 (diff)
downloadotp-49349644863568fea49e41fe5daf8f20753041df.tar.gz
otp-49349644863568fea49e41fe5daf8f20753041df.tar.bz2
otp-49349644863568fea49e41fe5daf8f20753041df.zip
[dbg] Fix encoding comment
Encoding specified in a comment must be 'utf-8' instead of 'utf8'.
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]);
({_, _}, _) ->