Discrepancy in output length with special characters
Open
Nobody has claimed this yet.
J - Encoding
U - wc
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
With
echo "mÃ" > /tmp/a
With our implementation:
$ cat /tmp/a| ./target/debug/coreutils wc -L -l
1 2
With GNU:
$ cat /tmp/a| /usr/bin/wc -L -l
1 1
Found with the wc differential fuzzer
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the reported wc command with the exact mà input and compare its output with GNU wc -L -l. Trace the wc entry point to determine why the special-character line length differs, then verify that the Rust implementation produces the GNU result for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100