diff options
author | Siri Hansen <[email protected]> | 2017-06-12 14:20:08 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-06-16 11:52:21 +0200 |
commit | b21f42298cfab6374f2f1d433747399a6e1c9f5c (patch) | |
tree | b6889a9c0629ec677f2bd0e7babc57cc83ddf1fb /lib/observer/src/ttb.erl | |
parent | 2d0f7846d23ea77f20eaed6c69638fec68588fe1 (diff) | |
download | otp-b21f42298cfab6374f2f1d433747399a6e1c9f5c.tar.gz otp-b21f42298cfab6374f2f1d433747399a6e1c9f5c.tar.bz2 otp-b21f42298cfab6374f2f1d433747399a6e1c9f5c.zip |
[ttb] Handle unicode atoms in trace data and config files
Diffstat (limited to 'lib/observer/src/ttb.erl')
-rw-r--r-- | lib/observer/src/ttb.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/observer/src/ttb.erl b/lib/observer/src/ttb.erl index 87a50e046b..cc7bc8d906 100644 --- a/lib/observer/src/ttb.erl +++ b/lib/observer/src/ttb.erl @@ -391,16 +391,16 @@ run_config(ConfigFile,N) -> print_func(M,F,A) -> Args = arg_list(A,[]), - io:format("~w:~w(~s) ->~n",[M,F,Args]). + io:format("~w:~tw(~ts) ->~n",[M,F,Args]). print_result(R) -> - io:format("~p~n~n",[R]). + io:format("~tp~n~n",[R]). arg_list([],[]) -> ""; arg_list([A1],Acc) -> - Acc++io_lib:format("~w",[A1]); + Acc++io_lib:format("~tw",[A1]); arg_list([A1|A],Acc) -> - arg_list(A,Acc++io_lib:format("~w,",[A1])). + arg_list(A,Acc++io_lib:format("~tw,",[A1])). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1117,7 +1117,7 @@ get_fd(Out) -> Out; _file -> file:delete(Out), - case file:open(Out,[append]) of + case file:open(Out,[append,{encoding,utf8}]) of {ok,Fd} -> Fd; Error -> exit(Error) end |