Skip to content

winx5-misc — sum/sort/du/hexdump/glob/wrappers/seq fixes (#1370–#1376) - #1397

Merged
caomengxuan666 merged 10 commits into
mainfrom
fix/winx5-misc
Oct 26, 2026
Merged

caomengxuan666 merged 10 commits into
mainfrom
fix/winx5-misc

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

One commit per issue, from cluster winx5-misc (report: clusters/winx5-misc/REPORT.md in the campaign workspace).

Fixes #1370
Fixes #1371
Fixes #1372
Fixes #1373
Fixes #1374
Fixes #1375
Fixes #1376

Verification debt (stated honestly in the cluster report): GNU oracle expectations were measured locally against coreutils 9.4 / util-linux semantics, and the new hexdump format engine was extracted and behavior-verified standalone under g++, but the mingw+Wine product harness build has not completed yet (build-slot starvation; a detached build is queued). Do not merge until repro.sh passes on the harness build and the i18n catalog sync for the three new hexdump diagnostics lands.

…e repeated blocks, print trailing odd bytes in 2-byte modes, and treat operands as one continuous stream (#1373)
… hexdump, xxd, dd, tree and patch under WINUX_SHELL_GLOB=native (#1374)
…rapped command; chroot/runcon option errors exit 125 (#1375)
…e keys (#1373)

- command.hexdump.error.bad_format_string: 'bad format string: {}'
  (dedicated block; the parser detail stays untranslated)
- command.hexdump.error.cannot_open_format_file: quoted-prefix entry
  + fallback 'can'\''t open format file '\''{}'\'''
- command.hexdump.error.format_consumes_no_input: exact entry
  'format string consumes no input'

English fallbacks live here in the source; the zh-CN catalog sync
lands in unixwin/winuxcmd-i18n (VERSION bump) in the same task.
…GNU, not the scaled quantity (#1371)

The first #1371 fix overshot: comparing value * 1024^rank fixes the
negative shapes in the issue but breaks GNU cross-rank positives -
Windows CI failed the pre-existing
sort_human_numeric_uses_suffix_order_before_value (2000M must precede
1G). GNU coreutils 9.4 oracle, re-measured: 999K < 2000M < 1G,
1500K < 1M, -2G < -1G < -500M, -1M < -1500K - i.e. the unit order
decides first for both signs, reversed for negatives, and the
mantissa (which carries the sign) decides within one rank. Restore
the rank-then-value structure with the rank direction flipped for
negatives; drop the human_scale helper the scaled fix introduced.
New pin: sort_human_numeric_rank_dominates_magnitude_issue1371.
…ets (#1373)

hexdump offsets are hexadecimal (%07.7_Ax): rows of 16 bytes sit at
0000000/0000010/0000020 and 48 bytes end at 0000030. The test as
committed expected 0000020/0000040 for rows 2/3, which contradicts
both the implementation and the sibling squeeze test in the same
file (and repro.sh); Windows CI failed it while every other #1373
test passed. Test expectation only - no behavior change.
@caomengxuan666

Copy link
Copy Markdown
Member Author

Verification update from the successor (finisher) agent — full detail in the cluster FINISH-REPORT:

Corrections appended after the original 7 commits (CI on the previous tip caught two real failures, both fixed):

CI on current tip c0ffba8: build-windows x64 PASS (full ctest suite), arm64 PASS. The oracle check is red only because git.savannah.gnu.org is unreachable from the runners (gnulib submodule clone fails before any project code builds; it passed on the previous tip).

i18n landed: 14b8c58 registers the three new hexdump diagnostics with stable keys + English fallbacks (extract-verified), and unixwin/winuxcmd-i18n PR #9 adds the zh-CN entries + VERSION 0.6.21.

Local repro.sh still outstanding — blocked by a host failure, not this code: this machine's wineserver currently crashes on any wine invocation (even wine cmd /c echo hi), so the mingw+Wine harness configure dies instantly (observed twice). A detached build waiter remains armed and will produce the harness if/when wine recovers. The PR is intentionally left in draft for the main session to adjudicate: wait for local repro, or accept the full Windows CI pass as the equivalent gate.

@caomengxuan666
caomengxuan666 marked this pull request as ready for review October 26, 2026 10:36
@caomengxuan666 caomengxuan666 changed the title WIP: winx5-misc — sum/sort/du/hexdump/glob/wrappers/seq fixes (#1370–#1376) winx5-misc — sum/sort/du/hexdump/glob/wrappers/seq fixes (#1370–#1376) Oct 26, 2026
@caomengxuan666
caomengxuan666 merged commit 307758d into main Oct 26, 2026
8 of 10 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/winx5-misc branch October 30, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment