Skip to content

Conversation

drinkcat
Copy link
Collaborator

test_basename: Fix test_invalid_utf8_args

The test was not really testing for the right thing. If a non-unicode
string is passed, the basename should be printed as-is.

basename: Fix basename function, print raw byte slice.

basename: Take in parameters as OSString

This will allow us to handle non-Unicode strings correctly.

The logic needs to be updated, next.

drinkcat added 3 commits July 23, 2025 21:03
This will allow us to handle non-Unicode strings correctly.

The logic needs to be updated, next.
The test was not really testing for the right thing. If a non-unicode
string is passed, the basename should be printed as-is.
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

@cakebaker cakebaker merged commit d2b95eb into uutils:main Jul 23, 2025
77 of 78 checks passed
@cakebaker
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants