aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src/fprof.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-09-21 08:01:52 +0200
committerHans Bolinder <[email protected]>2017-09-21 08:01:52 +0200
commitf150c21029477836fb4b533ee02290d5b6bcc818 (patch)
tree45b5a86849d3d870739e3080e2184459e6929539 /lib/tools/src/fprof.erl
parent79bd54e898c65f8b649d56525db214386cc75cf8 (diff)
parent918e7de543f729b6fad35c22eaeeb3fba3a4a7ba (diff)
downloadotp-f150c21029477836fb4b533ee02290d5b6bcc818.tar.gz
otp-f150c21029477836fb4b533ee02290d5b6bcc818.tar.bz2
otp-f150c21029477836fb4b533ee02290d5b6bcc818.zip
Merge branch 'hasse/tools/fprof_unicode_fix' into maint
* hasse/tools/fprof_unicode_fix: fprof: Make sure the receiving file can handle Unicode
Diffstat (limited to 'lib/tools/src/fprof.erl')
-rw-r--r--lib/tools/src/fprof.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tools/src/fprof.erl b/lib/tools/src/fprof.erl
index 2fe42beb03..fb657c2928 100644
--- a/lib/tools/src/fprof.erl
+++ b/lib/tools/src/fprof.erl
@@ -1136,7 +1136,7 @@ ensure_open(Pid, _Options) when is_pid(Pid) ->
ensure_open([], _Options) ->
{already_open, undefined};
ensure_open(Filename, Options) when is_atom(Filename); is_list(Filename) ->
- file:open(Filename, Options).
+ file:open(Filename, [{encoding, utf8} | Options]).
%%%---------------------------------
%%% Fairly generic utility functions