Repository navigation
Conversation
|
On 1af3184 the mount point gets the The source field keeps the |
1af3184 to
5636f4b
Compare
|
GNU testsuite comparison: |
5636f4b to
d1af5f0
Compare
|
Thanks @fixfon for the catch and detailed reproducer! I've updated the PR and rebased onto upstream/main (which also resolves the unrelated ests/du/block-size failure):
eplace_special_chars now properly unescapes standard 3-digit octal sequences (including \012 for \n and \011 for \t, matching kernel escaping in mountinfo/mtab and gnulib's unescape_tab).
|
montezuma-p
left a comment
There was a problem hiding this comment.
The latest push fails cargo fmt --check on src/uucore/src/lib/features/fsext/mod.rs (lines 204, 1062 and 1069 per the Style/format job), which is what fails the Style and Lint jobs. Running cargo fmt should clear them.
This overlaps #16102, which also decodes \012 and replaces control characters in the mount point column; this PR is the one that also decodes the source.
10f8aed to
0056b5a
Compare
|
Thanks @montezuma-p! I've run cargo fmt and rebased onto the latest main. |
0056b5a to
eccd2f3
Compare
eccd2f3 to
3ba7b58
Compare
Merging this PR will not alter performance1 warning, 1 note
Comparing Footnotes
|
Fixes #15817
GNU df prints ? for control characters in file and mount names, whereas uutils printed them verbatim, breaking table formatting on newlines or transmitting escape sequences.
Changes
src/uu/df/src/table.rs:
src/uucore/src/lib/features/fsext/mod.rs:
eplace_special_chars to decode standard octal sequences (\ooo, including \012 for \n and \011 for \t, matching kernel escaping in mountinfo/mtab and gnulib's unescape_tab).
** ests/by-util/test_df.rs**:
Verification