Skip to content

mktemp: handle invalid UTF-8 in suffix gracefully#10818

Merged
ChrisDryden merged 1 commit intouutils:mainfrom
sylvestre:mktemp-inv
Feb 8, 2026
Merged

mktemp: handle invalid UTF-8 in suffix gracefully#10818
ChrisDryden merged 1 commit intouutils:mainfrom
sylvestre:mktemp-inv

Conversation

@sylvestre
Copy link
Contributor

should fix tests/mktemp/bad-unicode.sh

@ChrisDryden
Copy link
Collaborator

ChrisDryden commented Feb 8, 2026

So the test succeeds because it only checks to make sure that the directory is created, but the .to_string_lossy() changes the path. My opinion is we should still merge this anyways since the full fix would be to make the Params prefix and suffix stored as OsString and could be much bigger in scope

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

GNU testsuite comparison:

Congrats! The gnu test tests/mktemp/bad-unicode is no longer failing!
Congrats! The gnu test tests/pr/bounded-memory is no longer failing!

@ChrisDryden ChrisDryden merged commit b9d233f into uutils:main Feb 8, 2026
140 of 155 checks passed
oech3 pushed a commit to oech3/coreutils that referenced this pull request Feb 9, 2026
cerdelen pushed a commit to cerdelen/coreutils that referenced this pull request Feb 12, 2026
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