Commit graph

16298 commits

Author SHA1 Message Date
Sylvestre Ledru
f450505e6e ptx: write_traditional_output also support non-utf8 2025-08-14 10:52:45 +02:00
Sylvestre Ledru
f65c36d609 address review comments 2025-08-14 10:52:37 +02:00
Sylvestre Ledru
344798e144 Update src/uu/readlink/src/readlink.rs
Co-authored-by: Nicolas Boichat <nicolas@boichat.ch>
2025-08-14 10:52:37 +02:00
Sylvestre Ledru
5ae195b99a Update tests/by-util/test_pathchk.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-08-14 10:52:37 +02:00
Sylvestre Ledru
a7f3cb0209 realpath: fix regression with empty string validation
Fixes issue introduced in b965c944837df66b233f57fca7275fbed4e4d311 where
switching from NonEmptyStringValueParser to OsString parser removed
validation that arguments cannot be empty strings.

- Add custom NonEmptyOsStringParser that validates OsString is not empty
- Use the parser for FILES, --relative-to, and --relative-base arguments
- Add test case to verify empty strings are rejected with exit code 1
- Fixes GNU realpath test failure
2025-08-14 10:52:37 +02:00
Sylvestre Ledru
1ab3a8df4f address review comments 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
faf3f7e526 head: remove old test that we know support it 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
98224ed0cf Finalize the fuzzer 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
82043f2ce3 run fuzz_non_utf8_paths in the ci 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
741370d771 Fix tac to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
ba7d902e50 Fix tsort to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
596784e70e Fix base64/base32/basenc to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
a69e6c9bd3 Fix dircolors to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
b46188cdb2 Fix nl to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
373aafc5ff Fix ptx to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
b5f8931b17 Fix stdbuf to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
f02436be0f Fix expand to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
8b38336036 Fix pathchk to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
d45113f574 Fix paste to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
581edf09d3 Fix chgrp to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
b91eb4266f Fix split to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
89f434d2bc Fix fmt to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
20793600f7 Fix csplit to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
39b7721464 Fix install to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
fddaa1187a Fix sum to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
6e55a2a3bb Fix cut to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
693bdd7748 Fix truncate to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
b54d999cc6 Fix more to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
0706675830 Fix mktemp to handle non-UTF-8 templates 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
0e4ed4d462 Fix shred to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
1056ebe0d5 Fix join to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
6c996865c9 Fix comm to handle non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
9f0447cbe9 Add non-UTF-8 filename support to tee and improve fuzzer coverage 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
b67d04557e fuzz: add concise logging to show which programs are being tested 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
5f575d5e5f fuzz: improve fuzzer performance and program distribution 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
f15dac138e chmod/readlink/du: improve non-UTF-8 filename handling and code style 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
581e752598 ln: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
5c77fe1ab5 readlink: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
c0da27addc touch: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
a3ebaaa730 cat: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
57fff7e032 unlink: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
a0f1e34d10 rm: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
b8702bd5df ln: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
ce7c571754 realpath: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
becbc0e19d head: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
b301131a67 dirname: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
c366551b02 tests: add test for chmod with non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
1cfb30ecb3 chmod: fix handling of non-UTF-8 filenames 2025-08-14 10:52:24 +02:00
Sylvestre Ledru
c00c92ccc6 fuzz: add fuzzer to test non-UTF-8 path handling across all utilities 2025-08-14 10:52:24 +02:00
renovate[bot]
8fcd4ea579 chore(deps): update actions/checkout action to v5 2025-08-14 10:52:24 +02:00