Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problems when reading from stdin and "-noshell" was passed to erl (or used through an escript) #7384

Conversation

garazdawi
Copy link
Contributor

@garazdawi garazdawi commented Jun 9, 2023

Fix problems when reading from stdin and "-noshell" was passed to erl (or used through an escript)

fixes #7368
fixes #6881
fixes #7286
fixes #7230

@garazdawi garazdawi added team:VM Assigned to OTP team VM bug Issue is reported as a bug labels Jun 9, 2023
@garazdawi garazdawi requested a review from frazze-jobb June 9, 2023 12:22
@garazdawi garazdawi self-assigned this Jun 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2023

CT Test Results

       3 files     143 suites   1h 44m 46s ⏱️
3 243 tests 2 963 ✔️ 277 💤 3
3 750 runs  3 421 ✔️ 326 💤 3

For more details on these failures, see this check.

Results for commit b572a4c.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@garazdawi garazdawi force-pushed the lukas/kernel/fix-reading-characters-from-stdin branch from 2b49f96 to 94927cc Compare June 14, 2023 12:29
@garazdawi garazdawi added the testing currently being tested, tag is used by OTP internal CI label Jun 14, 2023
…tdin-bug"

This reverts commit 4e668b9, reversing
changes made to cfc8638.
Various eof scenarios when group is using io_lib:collect_chars
was not handled correctly and thus when "oldshell" was changed
to be handled by group it broke some existing usages.

fixes erlang#7368
fixes erlang#6881
fixes erlang#7286
@garazdawi garazdawi force-pushed the lukas/kernel/fix-reading-characters-from-stdin branch from 61eaa70 to f776a11 Compare June 16, 2023 11:31
@garazdawi garazdawi changed the title stdlib: Fix eof handling in io_lib:collect_chars Fix problems when reading from stdin and "-noshell" was passed to erl (or used through an escript) Jun 16, 2023
frazze-jobb and others added 4 commits June 20, 2023 10:36
As group now acts as the proxy when running "oldshell" or
"noshell" it needs to be able to read and write raw binaries.
Latin1 encoding allows all possible bytes, so by fixing latin1
we allow any bytes to be passed into and out of Erlang unmodified.

fixes erlang#7230
@garazdawi garazdawi force-pushed the lukas/kernel/fix-reading-characters-from-stdin branch from 305f4ba to 2b1ce5d Compare June 20, 2023 08:36
@garazdawi garazdawi merged commit 65d7d12 into erlang:master Jun 20, 2023
@garazdawi garazdawi added this to the OTP-26.0.2 milestone Jun 20, 2023
@garazdawi garazdawi deleted the lukas/kernel/fix-reading-characters-from-stdin branch October 4, 2023 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
3 participants