Skip to content

Commit 331170e

Browse files
committed
Default to IO.write in Mix.Shell.cmd/2
Erlang defaults to UTF-8 on Windows since Erlang/OTP 26+, so we no longer need to check conditionally. Closes #14253.
1 parent a0214e9 commit 331170e

File tree

1 file changed

+1
-2
lines changed
  • lib/mix/lib/mix/shell

1 file changed

+1
-2
lines changed

lib/mix/lib/mix/shell/io.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ defmodule Mix.Shell.IO do
104104

105105
Mix.Shell.cmd(command, opts, fn data ->
106106
if print_app?, do: print_app()
107-
# Due to encoding of shell command on Windows, write the data as is.
108-
if windows?, do: IO.binwrite(data), else: IO.write(data)
107+
IO.write(data)
109108
end)
110109
end
111110
end

0 commit comments

Comments
 (0)