Skip to content

Commit 03189d0

Browse files
author
José Valim
committed
Properly set standard_error to unicode
1 parent aa09359 commit 03189d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/src/elixir.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ start(_Type, _Args) ->
2121
%% Set the shell to unicode so printing inside scripts work
2222
%% Those can take a while, so let's do it in a new process
2323
spawn(fun() ->
24-
io:setopts(standard_io, [binary,{encoding,unicode}]),
25-
io:setopts(standard_error, [binary,{encoding,unicode}])
24+
io:setopts(standard_io, [binary,{encoding,utf8}]),
25+
io:setopts(standard_error, [{unicode,true}])
2626
end),
2727
elixir_sup:start_link().
2828

0 commit comments

Comments
 (0)