Skip to content

wc: should report correct count on multibyte input #14928

Open

Description

@xtqqczze

wc/wc.pl: wc -c -m on multibyte input reports the wrong count

Activity

  1. changed the title [-]`wc -c -m` on multibyte input reports the wrong count[/-] [+]wc: should report correct count on multibyte input[/+] on Sep 29, 2026
  2. darkraider01 commented on Oct 5, 2026

    @darkraider01
    Contributor

    Hey, I'd like to take a look at this one.

    I traced the -c -m path a bit and it seems to go through the fast character counting code in count_fast.rs, so I want to first reproduce the exact wc.pl failure and check how it's behaving with invalid/multibyte input.

    I'll add a focused regression test once I pin down the case, then work from there. Is it okay if I take this?

  3. xtqqczze commented on Oct 5, 2026

    @xtqqczze
    CollaboratorAuthor

    taken by @darkraider01

  4. self-assigned this
    on Oct 5, 2026
  5. removed their assignment
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions