Skip to content

fix(factor): Correct comment#13226

Open
HackingRepo wants to merge 2 commits into
uutils:mainfrom
HackingRepo:patch-5
Open

fix(factor): Correct comment#13226
HackingRepo wants to merge 2 commits into
uutils:mainfrom
HackingRepo:patch-5

Conversation

@HackingRepo

Copy link
Copy Markdown

Fixes #12443

Comment thread src/uu/factor/src/factor.rs Outdated
Co-authored-by: oech3 <79379754+oech3@users.noreply.github.com>
@HackingRepo HackingRepo requested a review from oech3 June 30, 2026 08:44
let stdout = stdout();
// We use a smaller buffer here to pass a gnu test. 4KiB appears to be the default pipe size for bash.
// use a smaller buffer here to pass a GNU test.
let mut w = io::BufWriter::with_capacity(4 * 1024, stdout.lock());

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.

I actually don't know why is this size needed. Perhaps, https://doc.qu1x.dev/bevy_trackball/rustix/pipe/constant.PIPE_BUF.html ?
(I did not test that the const is usable on non unix.)

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/io-errors (passes in this run but fails in the 'main' branch)

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.

factor: incorrect comment

2 participants