Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@sylvestre
Copy link
Contributor

No description provided.

@sylvestre sylvestre force-pushed the sort-utf branch 2 times, most recently from 140a726 to e1837a0 Compare December 18, 2025 09:57
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/tail/inotify-dir-recreate is now passing!

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/tail/inotify-dir-recreate is now passing!

@sylvestre sylvestre force-pushed the sort-utf branch 2 times, most recently from 57f5452 to 1c0f20e Compare December 18, 2025 17:23
@github-actions
Copy link

GNU testsuite comparison:

Note: The gnu test tests/tail/inotify-dir-recreate is now being skipped but was previously passing.

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/misc/nohup is no longer failing!
Note: The gnu test tests/tail/inotify-dir-recreate is now being skipped but was previously passing.

Comment on lines +1562 to +1563
let non_utf8_path = at.plus_as_string("").to_owned() + "/";
let full_path = Path::new(&non_utf8_path).join(non_utf8_name);
Copy link
Contributor

@cakebaker cakebaker Dec 19, 2025

Choose a reason for hiding this comment

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

Unless I'm missing something, I think you can simplify it and use plus. And as a side effect it would also fix the clippy warning that's shown for line 1562.

Suggested change
let non_utf8_path = at.plus_as_string("").to_owned() + "/";
let full_path = Path::new(&non_utf8_path).join(non_utf8_name);
let full_path = at.plus(non_utf8_name);

at.append("file2.txt", "apple\n");

// Create a file with non-UTF-8 bytes in filename
let non_utf8_name = OsStr::from_bytes(b"\xff\xfefile3.txt");
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if you have seen it: the spell checker complains about "xfefile" ;-)

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.

sort --files0-from Requires UTF-8 / Panics on Non‑UTF‑8 Filenames

2 participants