Skip to content

disksup: Support Unicode directories in get_disk_info/1#10721

Open
the-mikedavis wants to merge 1 commit intoerlang:masterfrom
the-mikedavis:md/disksup-unicode
Open

disksup: Support Unicode directories in get_disk_info/1#10721
the-mikedavis wants to merge 1 commit intoerlang:masterfrom
the-mikedavis:md/disksup-unicode

Conversation

@the-mikedavis
Copy link
Contributor

Previously, attempting disksup:get_disk_info/1 with a directory name containing non-ASCII Unicode code points failed on systems where df is used because the format specifier for the df command uses ~s rather than ~ts. We can format with ~ts and pass the data to the port command as a binary instead.

df handles non-ASCII directory names correctly in my testing on Linux.

Previously, attempting `disksup:get_disk_info/1` with a directory name
containing non-ASCII Unicode code points failed on systems where `df`
is used because the format specifier for the `df` command uses `~s`
rather than `~ts`. We can format with `~ts` and pass the data to the
port command as a binary instead.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2026

CT Test Results

  2 files   15 suites   3m 36s ⏱️
116 tests 111 ✅ 5 💤 0 ❌
136 runs  131 ✅ 5 💤 0 ❌

Results for commit 09680b0.

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

@IngelaAndin IngelaAndin added the team:VM Assigned to OTP team VM label Feb 18, 2026
@jhogberg jhogberg self-assigned this Feb 23, 2026
@jhogberg jhogberg added testing currently being tested, tag is used by OTP internal CI and removed testing currently being tested, tag is used by OTP internal CI labels Feb 23, 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