aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-09-21 08:03:57 +0200
committerHans Bolinder <[email protected]>2017-09-21 08:03:57 +0200
commit3693a570f4a080501801c45c127e624cd2bccb72 (patch)
tree19524db92d93f2a6d2fcdb1f86ab1db2737ef1d4 /lib/tools/src
parentc5fcba8d9917d8da2a9c026cd8838657e44e58fb (diff)
parentf150c21029477836fb4b533ee02290d5b6bcc818 (diff)
downloadotp-3693a570f4a080501801c45c127e624cd2bccb72.tar.gz
otp-3693a570f4a080501801c45c127e624cd2bccb72.tar.bz2
otp-3693a570f4a080501801c45c127e624cd2bccb72.zip
Merge branch 'maint'
* maint: fprof: Make sure the receiving file can handle Unicode
Diffstat (limited to 'lib/tools/src')
-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