-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unicode symbols misprinted in compiler messages on mix cmd mix compile
#14253
Comments
Thank you for the report! Can you try running this:
And let me know what it returns? There is no need to paste a screenshot, you should be able to copy and paste the contents here. :) |
Both commands return an error as shown here... I am attaching the 2nd crash dump just in case you need it.
|
Please try these steps then. Create a file named -module(foo).
-compile(export_all).
stdout() ->
io:put_chars("└─"), halt().
stderr() ->
io:put_chars(standard_error, "└─"), halt(). And then run these commands:
And let me know what each of them returns! Thank you! |
Here is what happened:
|
Thank you. Let's continue digging, can you please try this? Write the following to -module(foo).
-compile(export_all).
stdout() ->
io:put_chars("└─"), halt().
stderr() ->
io:put_chars(standard_error, "└─"), halt().
run([Device]) ->
ok = io:setopts(standard_io, [binary]),
Port = open_port({spawn, "erl -noshell -s foo " ++ atom_to_list(Device)},
[binary, use_stdio, stderr_to_stdout, exit_status]),
handle_port_output(Port),
halt().
handle_port_output(Port) ->
receive
{Port, {data, Data}} ->
io:format("1: ~s", [Data]),
io:format("2: ~ts", [Data]),
io:put_chars("3: "),
io:put_chars(Data),
file:write(standard_io, "4: "),
file:write(standard_io, Data),
handle_port_output(Port);
{Port, {exit_status, Status}} ->
Status
end. And then run these commands:
The above should tell us if we can fully reproduce the problem only with Erlang and if there is a viable solution. |
Here are the results:
|
Elixir and Erlang/OTP versions
Instead of printing vertical and horizontal bars, I get
â
characters as shown in the attached.I get this incorrect behavior with v1.18.2 but all was fine in v1.17.3 as shown in the attached.
Operating system
Windows 10
Current behavior
v1.18.2.docx
Expected behavior
v1.17.3.docx
The text was updated successfully, but these errors were encountered: