Skip to content

Commit

Permalink
Merge pull request #1151 from garazdawi/lukas/revert-unicode-support
Browse files Browse the repository at this point in the history
Revert unicode support
  • Loading branch information
robertoaloi committed Dec 3, 2021
2 parents 77f26e8 + a81f616 commit e12f90c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/els_core/src/els_stdio.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ start_listener(Cb) ->
-spec init({function(), atom() | pid()}) -> no_return().
init({Cb, IoDevice}) ->
?LOG_INFO("Starting stdio server..."),
ok = io:setopts(IoDevice, [binary, {encoding, unicode}]),
ok = io:setopts(IoDevice, [binary, {encoding, latin1}]),
{ok, Server} = application:get_env(els_core, server),
ok = Server:set_io_device(IoDevice),
?MODULE:loop([], IoDevice, Cb, [return_maps]).

-spec send(atom() | pid(), binary()) -> ok.
send(IoDevice, Payload) ->
io:format(IoDevice, "~ts", [Payload]).
io:format(IoDevice, "~s", [Payload]).

%%==============================================================================
%% Listener loop function
Expand Down

0 comments on commit e12f90c

Please sign in to comment.