Skip to content

Discrepancy in output length with special characters #5831

@sylvestre

Description

@sylvestre

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    J - Encodingencoding (UTF-8, UTF-16) related issueU - wc

    Type

    No type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions