diff options
author | Hans Bolinder <[email protected]> | 2017-09-19 15:34:09 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-09-20 08:16:31 +0200 |
commit | 918e7de543f729b6fad35c22eaeeb3fba3a4a7ba (patch) | |
tree | ef8acf9e663a8aa6ffc6784d78b687fe0422dc0b /lib/tools/src | |
parent | e01a81ba3119247b8837f6202591c2a3fec264e9 (diff) | |
download | otp-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')
-rw-r--r-- | lib/tools/src/fprof.erl | 2 |
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 |