We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26d3189 + 5eaf1b6 commit 296162aCopy full SHA for 296162a
apps/rebar/src/rebar3.erl
@@ -117,7 +117,13 @@ run(RawArgs) ->
117
-spec run_aux(rebar_state:t(), [string()]) ->
118
{ok, rebar_state:t()} | {error, term()}.
119
run_aux(State, RawArgs) ->
120
- io:setopts([{encoding, unicode}]),
+ %% The shell is already set to Unicode from Erlang/OTP 26+.
121
+ %% Skipping this also avoids a regression on Erlang/OTP 26.0.0.
122
+ case code:ensure_loaded(prim_tty) of
123
+ {module, _} -> ok;
124
+ {error, _} -> io:setopts([{encoding, unicode}])
125
+ end,
126
+
127
%% Profile override; can only support one profile
128
State1 = case os:getenv("REBAR_PROFILE") of
129
false ->
0 commit comments