Skip to content

Conversation

jtracey
Copy link
Contributor

@jtracey jtracey commented Dec 23, 2024

It turns out GNU wc only escapes file names with newlines in them. This was never working properly, but became more noticeable when we added non-unicode support. (I'll also just say this choice by GNU was questionable.)

This also adds one of the tests requested in #6882. I added a new flag to build these kinds of tests, since, as hinted in #6639, files with unusual file names can be problematic with file systems or tools not written with them in mind.

GNU wc only escapes file names with newlines in them.
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@sylvestre sylvestre merged commit 067b296 into uutils:main Dec 28, 2024
61 of 62 checks passed
@sylvestre
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