From 918e7de543f729b6fad35c22eaeeb3fba3a4a7ba Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Tue, 19 Sep 2017 15:34:09 +0200 Subject: fprof: Make sure the receiving file can handle Unicode It is assumed that I/O devices can handle character codes greater than 255. --- lib/tools/src/fprof.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tools/src') 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 -- cgit v1.2.3