Skip to content

wc: honor single-byte character locales (fixes the wc test) - #16087

Merged
sylvestre merged 1 commit into
uutils:mainfrom
anastygnome:wc
Nov 7, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
anastygnome:wc

Conversation

@anastygnome

@anastygnome anastygnome commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the wc.pl test
closes #9712
cc: @cakebaker
cc: @sylvestre

Copilot AI balanced review requested due to automatic review settings October 31, 2026 19:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@anastygnome anastygnome changed the title wc: honor single-byte character locales (fixes the test) wc: honor single-byte character locales (fixes the wc test) Oct 31, 2026
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/wc/wc is no longer failing!

@anastygnome

This comment was marked as outdated.

@anastygnome

Copy link
Copy Markdown
Contributor Author

@cakebaker Ready for review.

Copilot AI balanced review requested due to automatic review settings November 1, 2026 12:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Copilot AI balanced review requested due to automatic review settings November 1, 2026 14:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Copilot AI balanced review requested due to automatic review settings November 1, 2026 14:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Comment thread src/uu/wc/src/wc.rs Resolved
Comment thread src/uu/wc/src/wc.rs Resolved
Comment thread src/uu/wc/src/wc.rs Resolved
Comment thread src/uu/wc/src/wc.rs Resolved
Comment thread src/uu/wc/src/wc.rs Resolved
Comment thread tests/by-util/test_wc.rs Resolved
@sylvestre

Copy link
Copy Markdown
Contributor

thanks for the work on this!
The test only covers plain -m. The specialized path and the invalid-byte path need tests too (see inline). The line-101 change you agreed to isn't pushed yet either.

Copilot AI balanced review requested due to automatic review settings November 2, 2026 21:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@anastygnome

Copy link
Copy Markdown
Contributor Author

thanks for the work on this! The test only covers plain -m. The specialized path and the invalid-byte path need tests too (see inline). The line-101 change you agreed to isn't pushed yet either.

@sylvestre just some traffic coming home, fixed :)

@anastygnome

anastygnome commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

@sylvestre the failure is due to the recent pr change, nothing I can do about it here ;)

@sylvestre

Copy link
Copy Markdown
Contributor

a bunch of jobs are failing

Copilot AI balanced review requested due to automatic review settings November 3, 2026 17:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Comment thread src/uu/wc/src/wc.rs Resolved
Comment thread src/uu/wc/src/wc.rs Resolved
Comment thread tests/by-util/test_wc.rs Resolved
Comment thread tests/by-util/test_wc.rs Resolved
Copilot AI balanced review requested due to automatic review settings November 6, 2026 18:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

Copilot AI balanced review requested due to automatic review settings November 7, 2026 09:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@anastygnome
anastygnome requested a review from sylvestre November 7, 2026 09:42
Copilot AI balanced review requested due to automatic review settings November 7, 2026 10:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@sylvestre
sylvestre enabled auto-merge (rebase) November 7, 2026 10:56
@sylvestre
sylvestre merged commit 31a1b0e into uutils:main Nov 7, 2026
99 of 101 checks passed
@anastygnome
anastygnome deleted the wc branch November 21, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wc -m returns character count instead of byte count in C/POSIX locale

4 participants