aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src/fprof.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-09-19 15:34:09 +0200
committerHans Bolinder <[email protected]>2017-09-20 08:16:31 +0200
commit918e7de543f729b6fad35c22eaeeb3fba3a4a7ba (patch)
treeef8acf9e663a8aa6ffc6784d78b687fe0422dc0b /lib/tools/src/fprof.erl
parente01a81ba3119247b8837f6202591c2a3fec264e9 (diff)
downloadotp-918e7de543f729b6fad35c22eaeeb3fba3a4a7ba.tar.gz
otp-918e7de543f729b6fad35c22eaeeb3fba3a4a7ba.tar.bz2
otp-918e7de543f729b6fad35c22eaeeb3fba3a4a7ba.zip
fprof: Make sure the receiving file can handle Unicode
It is assumed that I/O devices can handle character codes greater than 255.
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