Repository navigation
Conversation
iburaky2
marked this pull request as draft
June 14, 2026 18:30
iburaky2
force-pushed
the
fix/kill-invalid-utf8-error-message
branch
from
June 14, 2026 18:32
dd6998c to
1e33f1a
Compare
|
GNU testsuite comparison: |
iburaky2
marked this pull request as ready for review
June 14, 2026 19:25
sylvestre
force-pushed
the
fix/kill-invalid-utf8-error-message
branch
from
September 19, 2026 20:53
1e33f1a to
7a82315
Compare
sylvestre
reviewed
Nov 29, 2026
| #[uucore::main] | ||
| pub fn uumain(args: impl uucore::Args) -> UResult<()> { | ||
| let mut args = args.collect_ignore(); | ||
| let mut args = args.collect_lossy(); |
Contributor
There was a problem hiding this comment.
lossy replaces the bytes with U+FFFD in the error, GNU shows the original bytes escaped.
could we keep OsString for the pids/signals and use .quote() on them instead?
| .arg("-l") | ||
| .arg(&arg) | ||
| .fails() | ||
| .stderr_contains("'\u{FFFD}a\u{FFFD}': invalid signal"); |
Contributor
There was a problem hiding this comment.
please also add a case without -l, e.g. an invalid UTF-8 pid
Contributor
|
Style and Lint jobs are failing, please fix them (the SELinux one is unrelated) |
Contributor
Author
|
Sorry, busy with other stuff atm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12816