Skip to content

Commit 67573f1

Browse files
authored
Use binwrite on Windows, closes #14026 (#14027)
1 parent 768fa49 commit 67573f1

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ defmodule Mix.Shell.IO do
103103

104104
Mix.Shell.cmd(command, opts, fn data ->
105105
if print_app?, do: print_app()
106-
IO.write(data)
106+
# Due to encoding of shell command on Windows,
107+
# let's write the data as is
108+
IO.binwrite(data)
107109
end)
108110
end
109111
end

0 commit comments

Comments
 (0)