Skip to content

Commit 5d79b34

Browse files
committed
Force group leader to run as a binary and unicode in IEx
1 parent 14cddf3 commit 5d79b34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/iex/lib/iex.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ defmodule IEx do
871871
if Code.ensure_loaded?(:prim_tty) do
872872
spawn(fn ->
873873
{:ok, _} = Application.ensure_all_started(:iex)
874+
:ok = :io.setopts(binary: true, encoding: :unicode)
874875
_ = for fun <- Enum.reverse(after_spawn()), do: fun.()
875876
IEx.Server.run([register: false] ++ opts)
876877
end)

0 commit comments

Comments
 (0)