Skip to content

stdlib: fix that beam_lib:filename/1 returns binary#11076

Open
frazze-jobb wants to merge 1 commit into
erlang:masterfrom
frazze-jobb:frazze/stdlib/beam_lib_filename_should_return_binary/OTP-20118
Open

stdlib: fix that beam_lib:filename/1 returns binary#11076
frazze-jobb wants to merge 1 commit into
erlang:masterfrom
frazze-jobb:frazze/stdlib/beam_lib_filename_should_return_binary/OTP-20118

Conversation

@frazze-jobb
Copy link
Copy Markdown
Contributor

No description provided.

@frazze-jobb frazze-jobb self-assigned this Apr 30, 2026
@frazze-jobb frazze-jobb added the team:VM Assigned to OTP team VM label Apr 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

CT Test Results

    2 files    100 suites   56m 19s ⏱️
2 291 tests 2 235 ✅ 51 💤 5 ❌
2 711 runs  2 650 ✅ 56 💤 5 ❌

For more details on these failures, see this check.

Results for commit 2fd6aa2.

♻️ 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

filename(BB) ->
list_to_atom(BB#bb.source).
filename(BB) ->
list_to_binary(BB#bb.source).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This crashes with ...

{badarg,[{erlang,list_to_binary,
                 [[47,98,117,105,108,100,114,111,111,116,47,111,116,112,47,69,
                   114,108,97,110,103,32,8709,8868,8478,47,108,105,98,47,101,
                   100,111,99,45,49,46,52,46,49,47,101,98,105,110,47,101,100,
                   111,99,46,98,101,97,109]],
                 [{error_info,#{module => erl_erts_errors}}]},
%% aka /buildroot/otp/Erlang ∅⊤℞/lib/edoc-1.4.1/ebin/edoc.beam

... I think we ought to use unicode:characters_to_binary/2 here.

@frazze-jobb frazze-jobb assigned bjorng and unassigned frazze-jobb May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:VM Assigned to OTP team VM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants