aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-06-09 17:45:09 +0200
committerSiri Hansen <[email protected]>2017-06-16 11:52:21 +0200
commit98e0ccb4a56b3b2b6a552463f78e699ec7490669 (patch)
tree52c9895c903b655f9e99c821c701de338e7da60d /lib/stdlib
parent7b62bdcc96cbfcb631ceb99d277a9d2c117042a2 (diff)
downloadotp-98e0ccb4a56b3b2b6a552463f78e699ec7490669.tar.gz
otp-98e0ccb4a56b3b2b6a552463f78e699ec7490669.tar.bz2
otp-98e0ccb4a56b3b2b6a552463f78e699ec7490669.zip
[stdlib] Open error log file as utf8
This allows the use of ~ts/~tp/~tw in calls to error_logger:format/2, error_logger:error_msg/2 and error_logger:info_msg/2.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/error_logger_file_h.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/error_logger_file_h.erl b/lib/stdlib/src/error_logger_file_h.erl
index 76f89841b9..b7c193f965 100644
--- a/lib/stdlib/src/error_logger_file_h.erl
+++ b/lib/stdlib/src/error_logger_file_h.erl
@@ -55,7 +55,7 @@ init(File) ->
init(File, PrevHandler) ->
process_flag(trap_exit, true),
- case file:open(File, [write]) of
+ case file:open(File, [write,{encoding,utf8}]) of
{ok,Fd} ->
Depth = error_logger:get_format_depth(),
State = #st{fd=Fd,filename=File,prev_handler=PrevHandler,