fix(libc): print %C, %S and a zero %lc in the printf families as titles' libc.prx does #12397

Merged
JJenkx merged 5 commits from upstream-pr/12397 into main 2026-11-06 00:40:41 +00:00
JJenkx commented 2026-10-28 12:25:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-28T12:25:39Z.


Current refresh: head 51f8ea279c7dd2391fd39e4265579bb45b604b01 includes main 151a2cb6e274; scoped Linux CPU tests12/12, main24/24, public headers and regression controls pass. Current evidence is in the refresh comment; earlier platform reports retain their original pins.

What

Titles' own libc.prx (PPSA07923 and PPSA05916 agree on every row) prints these narrow printf conversions differently from here:

format argument titles before this PR
%C 0xe9 %C (2 bytes), no argument taken é (as %lc)
%5C| / %-3C| 0xe9 %C| / %C | é| / é |
%hC, %lC, %#C 0xe9 %C throws (%hC, %lC)
%C%d 65 %C65 A and the next argument
%lc 0 nothing, returns 0 a null byte, returns 1
%3lc| 0 |: the width is ignored two spaces and a null byte
%hS|, %lS| u"aé€" as %S throws

So %C is one of the unknown conversions this library already prints as % and its letter, padded to the width, without taking an argument (#11907). The change:

  • C leaves KnownConversions;
  • ApplicableLength drops the length of S;
  • a %lc of 0 writes nothing.

%ls and %S retain their previously measured handling. The %lc adapter now ignores precision before writing the whole UTF-8 sequence and keeps byte-based field width: for U+00E9, %.1lc writes c3 a9, and %5lc writes three spaces followed by c3 a9. A zero wide character still writes nothing, including width/precision combinations.

swprintf (second commit): in the titles' wide formatter neither %C nor %S is a conversion, with or without a length. %C|%5C|%hC|%S|%-3S|%lS%d with 7 prints %C| %C|%C|%S|%S |%S7. Here both formatted their argument as %lc/%ls; they now take #11907's unknown-conversion path. %lc, %ls, %hs and valid UTF-8 %s already matched. A wide %c or %s of bytes from 0x80 up is handled by #9964 and #9953, not here.

One existing check changed: "%2$ls|%1$C|%3$d" expected %1$C to print A. Positional %C wasn't measured, so that check now uses %1$lc; its purpose (a positional wide argument) is unchanged.

Tested

Current-main integration — 2026-11-04. Head c9d920d13a54745eba08af179a5cba8a8421eb85 includes main b11c7bf84f5d2f636ff60166cc3371bd071e24d5 and preserves previous public commits and attribution/licence notices. Retains the measured nonconsuming %C/literal %S behavior and main’s newer invalid multibyte character guard. The former #11907 prerequisite is now merged.

Linux x86-64, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON: rebuilt actual libc/Ampr and selected executables. guest_formatting, guest_wide_formatting, guest_stdio_variadic, guest_wide_conversion each pass 3/3 (12 runtime passes, zero skips); public_headers, conventions and whitespace checks pass. Pinned main passes all 17 selected baseline groups 3/3 (51 passes) plus headers. Before/after dependency checks agree: 34 recursive trees and 31,551 tracked blobs, zero errors; the update=none QuickJS test262 corpus is explicitly excluded from these library inputs.

Source/parent/gitlink proofs, library/test hashes, raw logs/JUnit and head-leased push receipts: qualification archive, SHA-256 7c347f620951ad6f39068740750949212c6412815da094a46a96eca1d15c8bbf (download verified). Older platform, stress, negative-control and reference reports retain their original pins; no new Windows/macOS, full-suite, SDK-module, console, title/GPU or performance claim. AI-assisted: yes (Codex).

Earlier dated qualifications below retain their original source/platform pins.

Latest Linux qualification (2026-11-02): exact head 4816b33918cad6ec1bd9b963aecea143f27fac49 on pinned main a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8. Uses the actual updated #11907 parent. Preserves measured narrow/wide %C/%S and length behavior, main’s UTF-8 helper/error handling, all added main fixtures and both sets of child regressions.

5 focused groups repeated three times: 15 passes, zero skips. Public headers, conventions, whitespace, raw libc/test builds and the actual production NID-patching command passed. MinGW syntax passed for Formatting.cpp, FormattingWide.cpp. No new Windows/macOS runtime, bundled-SDK reference, native title, GPU or performance claim; earlier evidence retains its historical pins.

Earlier pinned qualifications follow.

Current-main Linux integration at 464a7f3e28988bf785c2ac267f883843699a8006: merged main bc3e33f4e334996ab9ba5cbf8544942465be18f3 and rebuilt the actual libc plus guest_formatting, guest_wide_formatting, guest_stdio_variadic, guest_scan_count. Each suite passes three consecutive executions (12 passes, zero skips). Conventions and diff checks pass. The libc debt conflict is resolved by retaining the updated printf description and main’s new asinh entry. Published by a normal fast-forward, retaining the previous public head as an ancestor. The latest-main ba5b5330b3 merge preview is also clean; the executed build remains pinned to bc3e33f4e3. Earlier Windows/title-reference measurements below retain their original pins; this is not a new Windows or SDK-oracle run.

Raw integrated-source proof, test/JUnit logs and commands, SHA-256 54e3d599fbfc9317fe9d88d713a7fa2516d887652579c710df445cc44aba098c (download verified). AI-assisted: yes (Codex).

Earlier qualification at the original pins:

Exact follow-up head 41cfd4560a227a30c4848186ba6b8568998835e6:

  • Actual Linux and Windows libc libraries each pass guest_formatting, guest_wide_formatting, and guest_safe_errors repeated three times: 9 executions per host.
  • Owned converted PPSA03766 and PPSA07923 libc references agree on 48 snprintf rows covering zero, ASCII, two/three-byte characters, precision0/1/2, width, left alignment and surrounding text. Both exact candidate libraries match all48 rows, including return count, first16 bytes/canary and errno. No normalization was needed.
  • Additional Linux snprintf_s and sprintf_s replays each match48 rows against both references. Windows replay covers snprintf; its focused suite also checks shared safe-formatting behavior.
  • Restoring the published production header fails the new actual-library Linux formatting regression and differs13/48 reference rows. Restoring the fix rebuilds cleanly and passes all9 executions again.
  • SDK width for %5lc/U+00E9 is five bytes: three spaces plus the two-byte character. The fix preserves this measured behavior while removing precision truncation.

Probe sources, raw rows, both-host logs, JUnit, patch and negative controls, SHA-256 082d9f9ec17d5afc4ebe582699b77cebf45d5529d2b9a72b0813990e0aa34468 (download verified). References ran on Linux, not a console; other locales/SDKs and native-title effects remain unverified. This qualifies the published PR branch, not a current-main integration; the separate rebase refresh remains outstanding. No FPS claim.

Inherited title-side length comparisons (#11893, unchanged here). These are the earlier Windows-host calls into the bundled libc.prx from PPSA07923 and PPSA13934, not new PS5 measurements. Both title libraries gave the following outcomes for the narrow and wide cases listed in #11893's Tested section:

Case Bundled-title result
%Ld of the 32-bit 0x89abcdef pattern -1985229329 (int, not long long)
%hhc of 0x44 D
%hf of 1.5 1.500000
%hp of pointer 0x1234 1234
a%Ln returns 1 and stores an int count of 1; the adjacent bytes remain unchanged

The parent report's narrow matrix covers L on d/i/u/x/X/o/n, every length on c/s/n, the listed floating-length combinations and h/hh/ll/L/z on p; its explicit swprintf set is %Ld %Lx %hf %zg %hp %Lp %hhc %Lc %hhs %Ls %hs %Ln. Each new expectation was checked against both bundled libraries. #11893's follow-up tests use the matching int/guarded-int argument types.

The actual parent is updated #11907 8cac89f55a87191359f990f27952ecc1dd3cfbfe on main a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8. Earlier #11893/#11907 pins below describe historical measurements, not ancestry claims for this linear rebase. Against #11907, this PR adds only S to ApplicableLength's pointer-like case; the %Ld/%hhc/%hf/%hp/%Ln behavior is inherited unchanged. The %hS/%lS measurements for this PR remain separately listed above. Positional formats remain a CPU regression check, rather than a new title-side measurement.

Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, BUILD_TESTING=ON, on #11907's head 15b33e8e76.

  • Against titles' own libc.prx: I loaded PPSA07923's and PPSA05916's libc.prx natively and called their snprintf by NID (eLdDw6l0-bU) side by side with this build. Over 31 format/argument pairs (the table above, plus %ls/%lc/%S with units 0x7F to 0xFFFF, lone surrogates and precisions 1 to 4), comparing the return value, errno and the output bytes:
    • before: 2 of the first 17 pairs differ (%C and a zero %lc); the other 14 hit 2 more differences (%5C, %-3C) and then abort at %hC;
    • after: 0 differences.
  • swprintf against the titles (NID nJz16JE1txM), 28 pairs: the 11 %C/%S/unknown-conversion differences go to 0; the 6 left are the high-byte %c/%s rows that #9964 and #9953 cover. Negative control: with #11907's FormattingWide.cpp, guest_wide_formatting fails.
  • Tests: guest_formatting, guest_wide_formatting, guest_stdio_variadic and guest_scan_count pass in each of 3 runs.
  • Negative control: with #11907's WindowsFormatting.hpp, guest_formatting fails.

Not tested on Linux or macOS. On Linux, RequiresGuestFormatting already sends formats with %C and %lc to the same formatter, and now %hS/%lS too, since ApplicableLength changes their length.

Overlap: tools/pr_overlap.py lists the PRs that overlap #11893 and #11907, whose commits come first here. For this commit's own lines it reports only #11733 and #11737, which add debt entries next to the narrow-printf one; neither edits that entry.

Review correction and inherited evidence (2026-10-28)

@MarcZX10 Fixed the positional %C argument read in d017d6a6a4da133ee82577db92df03abaa5d4b66. C is now absent from NumberedArgumentClasses as well as KnownConversions. The regression uses %1$C, %2$C, %1$hC and padded %1$5C with valid VaList descriptors whose unused argument-storage pointers are null, checking both register and overflow paths, the output and that the caller's descriptor is unchanged. %1$C%d with one integer must print %C7.

Linux x86-64, Arch Linux 7.2.9, Ryzen 9 7950X, GCC 16.2.1, Ninja Release: all four groups (guest_formatting, guest_wide_formatting, guest_stdio_variadic, guest_scan_count) pass three times on the original reviewed head and three times on the fixed head (12/12 each, zero skips). With only the new regression and the old classifier, guest_formatting faults on the eager argument read; the other three groups pass. Conventions and whitespace checks pass. This is CPU validation, not a new title-side measurement of positional formats.

The ignored-length cases are inherited from #11893, rather than introduced here: historical head 17c950f0a54f8e44ec1e7561034ab6d7086ef824 supplied the measured basis through #11907 at 15b33e8e763cc814c74aa122a83b34c8cf8fe25e. #11893's Tested section records the earlier Windows comparisons with PPSA07923 and PPSA13934: the narrow length matrix, plus wide %Ld %Lx %hf %zg %hp %Lp %hhc %Lc %hhs %Ls %hs %Ln. Comparing this PR with #11907 changes ApplicableLength only for S, whose %hS/%lS measurements are already listed here. The inherited length behavior and its secure-format debt remain intact.

AI-assisted: yes (Codex).

Exact patch, source/dependency proofs, inherited measurements, original/test-only/fixed logs and JUnit, SHA-256 a535eeb4a7654869751db4be670d15c91bd2c9c1e0a03953ca2ee915f4bf1633. Please re-review the fixed classifier and the existing parent measurements. No new Windows, macOS or console measurement is claimed.

Current Linux qualification — 2026-10-29

Integrated current main 157b02c4f1803e9d2cd757677b9a805961203fc4 by normal fast-forward merge; earlier measured fixes, tests and actual parent ancestry are retained.

New head: 078102a03f127cd5dee128d1244195d4034916e4. The merge is automatic. The precision/width and positional unknown-conversion regressions remain, alongside main’s tests and entry-point calls.

Linux Release: guest_formatting, guest_wide_formatting, guest_stdio_variadic, guest_scan_count pass three repetitions (12 checks), plus the public-header audit, zero skips. Actual Formatting.cpp and FormattingWide.cpp, including WindowsFormatting.hpp, pass MinGW GCC16.2.0 cross syntax checking. Conventions report zero errors; any debt-length warnings are preserved in the logs. Whitespace and recursive submodule-pointer checks pass.

This is current-main Linux integration and Windows cross-compilation syntax evidence. Earlier actual Windows/title-library measurements retain their historical pins; no new Windows runtime, macOS, title, GPU or performance result is claimed. AI-assisted: yes.

Evidence: immutable Linux qualification bundle. Its SHA-256 is ca6b35926bcc6d3f21a9650517894c86b65594e2e2b653c5c32cd1c1de89c835. No fresh Windows runtime execution is claimed; older measurements retain their recorded source pins.

AI-assisted: yes (Codex).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (#11907 and #11893 merged; their implementation is retained in pinned main)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5050428040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12397). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-28T12:25:39Z. --- Current refresh: head `51f8ea279c7dd2391fd39e4265579bb45b604b01` includes main `151a2cb6e274`; scoped Linux CPU tests12/12, main24/24, public headers and regression controls pass. Current evidence is in the refresh comment; earlier platform reports retain their original pins. ### What Titles' own `libc.prx` (PPSA07923 and PPSA05916 agree on every row) prints these narrow `printf` conversions differently from here: | format | argument | titles | before this PR | |---|---|---|---| | `%C` | `0xe9` | `%C` (2 bytes), no argument taken | `é` (as `%lc`) | | `%5C\|` / `%-3C\|` | `0xe9` | ` %C\|` / `%C \|` | ` é\|` / `é \|` | | `%hC`, `%lC`, `%#C` | `0xe9` | `%C` | throws (`%hC`, `%lC`) | | `%C%d` | `65` | `%C65` | `A` and the next argument | | `%lc` | `0` | nothing, returns 0 | a null byte, returns 1 | | `%3lc\|` | `0` | `\|`: the width is ignored | two spaces and a null byte | | `%hS\|`, `%lS\|` | `u"aé€"` | as `%S` | throws | So `%C` is one of the unknown conversions this library already prints as `%` and its letter, padded to the width, without taking an argument (#11907). The change: - `C` leaves `KnownConversions`; - `ApplicableLength` drops the length of `S`; - a `%lc` of 0 writes nothing. `%ls` and `%S` retain their previously measured handling. The `%lc` adapter now ignores precision before writing the whole UTF-8 sequence and keeps byte-based field width: for U+00E9, `%.1lc` writes `c3 a9`, and `%5lc` writes three spaces followed by `c3 a9`. A zero wide character still writes nothing, including width/precision combinations. **`swprintf` (second commit):** in the titles' wide formatter neither `%C` nor `%S` is a conversion, with or without a length. `%C|%5C|%hC|%S|%-3S|%lS%d` with 7 prints `%C| %C|%C|%S|%S |%S7`. Here both formatted their argument as `%lc`/`%ls`; they now take #11907's unknown-conversion path. `%lc`, `%ls`, `%hs` and valid UTF-8 `%s` already matched. A wide `%c` or `%s` of bytes from 0x80 up is handled by #9964 and #9953, not here. **One existing check changed:** `"%2$ls|%1$C|%3$d"` expected `%1$C` to print `A`. Positional `%C` wasn't measured, so that check now uses `%1$lc`; its purpose (a positional wide argument) is unchanged. ### Tested **Current-main integration — 2026-11-04.** Head `c9d920d13a54745eba08af179a5cba8a8421eb85` includes main `b11c7bf84f5d2f636ff60166cc3371bd071e24d5` and preserves previous public commits and attribution/licence notices. Retains the measured nonconsuming `%C`/literal `%S` behavior and main’s newer invalid multibyte character guard. The former #11907 prerequisite is now merged. Linux x86-64, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON: rebuilt actual libc/Ampr and selected executables. `guest_formatting`, `guest_wide_formatting`, `guest_stdio_variadic`, `guest_wide_conversion` each pass 3/3 (**12 runtime passes, zero skips**); `public_headers`, conventions and whitespace checks pass. Pinned main passes all 17 selected baseline groups 3/3 (51 passes) plus headers. Before/after dependency checks agree: 34 recursive trees and 31,551 tracked blobs, zero errors; the update=none QuickJS test262 corpus is explicitly excluded from these library inputs. Source/parent/gitlink proofs, library/test hashes, raw logs/JUnit and head-leased push receipts: [qualification archive](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-libc10-mainb11c-linux-20261104.tar.gz), SHA-256 `7c347f620951ad6f39068740750949212c6412815da094a46a96eca1d15c8bbf` (download verified). Older platform, stress, negative-control and reference reports retain their original pins; no new Windows/macOS, full-suite, SDK-module, console, title/GPU or performance claim. AI-assisted: yes (Codex). Earlier dated qualifications below retain their original source/platform pins. Latest Linux qualification (2026-11-02): exact head `4816b33918cad6ec1bd9b963aecea143f27fac49` on pinned main `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`. Uses the actual updated #11907 parent. Preserves measured narrow/wide %C/%S and length behavior, main’s UTF-8 helper/error handling, all added main fixtures and both sets of child regressions. 5 focused groups repeated three times: **15 passes, zero skips**. Public headers, conventions, whitespace, raw libc/test builds and the actual production NID-patching command passed. MinGW syntax passed for Formatting.cpp, FormattingWide.cpp. No new Windows/macOS runtime, bundled-SDK reference, native title, GPU or performance claim; earlier evidence retains its historical pins. Earlier pinned qualifications follow. <!-- codex-current-main-qualification --> **Current-main Linux integration at `464a7f3e28988bf785c2ac267f883843699a8006`:** merged main `bc3e33f4e334996ab9ba5cbf8544942465be18f3` and rebuilt the actual libc plus `guest_formatting`, `guest_wide_formatting`, `guest_stdio_variadic`, `guest_scan_count`. Each suite passes three consecutive executions (12 passes, zero skips). Conventions and diff checks pass. The libc debt conflict is resolved by retaining the updated printf description and main’s new `asinh` entry. Published by a normal fast-forward, retaining the previous public head as an ancestor. The latest-main `ba5b5330b3` merge preview is also clean; the executed build remains pinned to `bc3e33f4e3`. Earlier Windows/title-reference measurements below retain their original pins; this is not a new Windows or SDK-oracle run. [Raw integrated-source proof, test/JUnit logs and commands](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr12397-current-main-linux-20261029.tar.gz), SHA-256 `54e3d599fbfc9317fe9d88d713a7fa2516d887652579c710df445cc44aba098c` (download verified). AI-assisted: yes (Codex). **Earlier qualification at the original pins:** <!-- /codex-current-main-qualification --> Exact follow-up head `41cfd4560a227a30c4848186ba6b8568998835e6`: - Actual Linux and Windows libc libraries each pass `guest_formatting`, `guest_wide_formatting`, and `guest_safe_errors` repeated three times: **9 executions per host**. - Owned converted PPSA03766 and PPSA07923 libc references agree on **48 snprintf rows** covering zero, ASCII, two/three-byte characters, precision0/1/2, width, left alignment and surrounding text. Both exact candidate libraries match all48 rows, including return count, first16 bytes/canary and errno. No normalization was needed. - Additional Linux `snprintf_s` and `sprintf_s` replays each match48 rows against both references. Windows replay covers `snprintf`; its focused suite also checks shared safe-formatting behavior. - Restoring the published production header fails the new actual-library Linux formatting regression and differs13/48 reference rows. Restoring the fix rebuilds cleanly and passes all9 executions again. - SDK width for `%5lc`/U+00E9 is five **bytes**: three spaces plus the two-byte character. The fix preserves this measured behavior while removing precision truncation. [Probe sources, raw rows, both-host logs, JUnit, patch and negative controls](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/libc-lc-precision-linux-windows-20261029.tar.gz), SHA-256 `082d9f9ec17d5afc4ebe582699b77cebf45d5529d2b9a72b0813990e0aa34468` (download verified). References ran on Linux, not a console; other locales/SDKs and native-title effects remain unverified. This qualifies the published PR branch, not a current-main integration; the separate rebase refresh remains outstanding. No FPS claim. <!-- codex-inherited-length-table-20261028-repeat-pr12397 --> **Inherited title-side length comparisons (#11893, unchanged here).** These are the earlier Windows-host calls into the bundled `libc.prx` from **PPSA07923 and PPSA13934**, not new PS5 measurements. Both title libraries gave the following outcomes for the narrow and wide cases listed in [#11893's Tested section](https://github.com/boykopovar/AnyPS5/pull/11893): | Case | Bundled-title result | |---|---| | `%Ld` of the 32-bit `0x89abcdef` pattern | `-1985229329` (`int`, not `long long`) | | `%hhc` of `0x44` | `D` | | `%hf` of `1.5` | `1.500000` | | `%hp` of pointer `0x1234` | `1234` | | `a%Ln` | returns 1 and stores an `int` count of 1; the adjacent bytes remain unchanged | The parent report's narrow matrix covers `L` on `d/i/u/x/X/o/n`, every length on `c/s/n`, the listed floating-length combinations and `h/hh/ll/L/z` on `p`; its explicit `swprintf` set is `%Ld %Lx %hf %zg %hp %Lp %hhc %Lc %hhs %Ls %hs %Ln`. Each new expectation was checked against both bundled libraries. #11893's follow-up tests use the matching `int`/guarded-`int` argument types. The actual parent is updated #11907 `8cac89f55a87191359f990f27952ecc1dd3cfbfe` on main `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`. Earlier #11893/#11907 pins below describe historical measurements, not ancestry claims for this linear rebase. Against #11907, this PR adds only `S` to `ApplicableLength`'s pointer-like case; the `%Ld/%hhc/%hf/%hp/%Ln` behavior is inherited unchanged. The `%hS/%lS` measurements for this PR remain separately listed above. Positional formats remain a CPU regression check, rather than a new title-side measurement. Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, `BUILD_TESTING=ON`, on #11907's head `15b33e8e76`. - **Against titles' own `libc.prx`:** I loaded PPSA07923's and PPSA05916's `libc.prx` natively and called their `snprintf` by NID (`eLdDw6l0-bU`) side by side with this build. Over 31 format/argument pairs (the table above, plus `%ls`/`%lc`/`%S` with units 0x7F to 0xFFFF, lone surrogates and precisions 1 to 4), comparing the return value, `errno` and the output bytes: - **before:** 2 of the first 17 pairs differ (`%C` and a zero `%lc`); the other 14 hit 2 more differences (`%5C`, `%-3C`) and then abort at `%hC`; - **after:** **0** differences. - **`swprintf` against the titles** (NID `nJz16JE1txM`), 28 pairs: the 11 `%C`/`%S`/unknown-conversion differences go to **0**; the 6 left are the high-byte `%c`/`%s` rows that #9964 and #9953 cover. Negative control: with #11907's `FormattingWide.cpp`, `guest_wide_formatting` fails. - **Tests:** `guest_formatting`, `guest_wide_formatting`, `guest_stdio_variadic` and `guest_scan_count` pass in each of 3 runs. - **Negative control:** with #11907's `WindowsFormatting.hpp`, `guest_formatting` fails. Not tested on Linux or macOS. On Linux, `RequiresGuestFormatting` already sends formats with `%C` and `%lc` to the same formatter, and now `%hS`/`%lS` too, since `ApplicableLength` changes their length. **Overlap:** `tools/pr_overlap.py` lists the PRs that overlap #11893 and #11907, whose commits come first here. For this commit's own lines it reports only #11733 and #11737, which add debt entries next to the narrow-printf one; neither edits that entry. <!-- codex-positional-format-followup-20261028-repeat-pr12397 --> ### Review correction and inherited evidence (2026-10-28) @MarcZX10 Fixed the positional `%C` argument read in `d017d6a6a4da133ee82577db92df03abaa5d4b66`. `C` is now absent from `NumberedArgumentClasses` as well as `KnownConversions`. The regression uses `%1$C`, `%2$C`, `%1$hC` and padded `%1$5C` with valid `VaList` descriptors whose unused argument-storage pointers are null, checking both register and overflow paths, the output and that the caller's descriptor is unchanged. `%1$C%d` with one integer must print `%C7`. Linux x86-64, Arch Linux 7.2.9, Ryzen 9 7950X, GCC 16.2.1, Ninja Release: all four groups (`guest_formatting`, `guest_wide_formatting`, `guest_stdio_variadic`, `guest_scan_count`) pass three times on the original reviewed head and three times on the fixed head (12/12 each, zero skips). With only the new regression and the old classifier, `guest_formatting` faults on the eager argument read; the other three groups pass. Conventions and whitespace checks pass. This is CPU validation, not a new title-side measurement of positional formats. The ignored-length cases are inherited from [#11893](https://github.com/boykopovar/AnyPS5/pull/11893), rather than introduced here: historical head `17c950f0a54f8e44ec1e7561034ab6d7086ef824` supplied the measured basis through [#11907](https://github.com/boykopovar/AnyPS5/pull/11907) at `15b33e8e763cc814c74aa122a83b34c8cf8fe25e`. #11893's Tested section records the earlier Windows comparisons with PPSA07923 and PPSA13934: the narrow length matrix, plus wide `%Ld %Lx %hf %zg %hp %Lp %hhc %Lc %hhs %Ls %hs %Ln`. Comparing this PR with #11907 changes `ApplicableLength` only for `S`, whose `%hS`/`%lS` measurements are already listed here. The inherited length behavior and its secure-format debt remain intact. AI-assisted: yes (Codex). [Exact patch, source/dependency proofs, inherited measurements, original/test-only/fixed logs and JUnit](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr12397-d017d6a6-linux-review-20261028-repeat.tar.gz), SHA-256 `a535eeb4a7654869751db4be670d15c91bd2c9c1e0a03953ca2ee915f4bf1633`. Please re-review the fixed classifier and the existing parent measurements. No new Windows, macOS or console measurement is claimed. <!-- codex-maintenance-20261029-repeat-12397 --> **Current Linux qualification — 2026-10-29** Integrated current `main` `157b02c4f1803e9d2cd757677b9a805961203fc4` by normal fast-forward merge; earlier measured fixes, tests and actual parent ancestry are retained. New head: `078102a03f127cd5dee128d1244195d4034916e4`. The merge is automatic. The precision/width and positional unknown-conversion regressions remain, alongside main’s tests and entry-point calls. Linux Release: `guest_formatting`, `guest_wide_formatting`, `guest_stdio_variadic`, `guest_scan_count` pass three repetitions (12 checks), plus the public-header audit, zero skips. Actual `Formatting.cpp` and `FormattingWide.cpp`, including `WindowsFormatting.hpp`, pass MinGW GCC16.2.0 cross syntax checking. Conventions report zero errors; any debt-length warnings are preserved in the logs. Whitespace and recursive submodule-pointer checks pass. This is current-main Linux integration and Windows cross-compilation syntax evidence. Earlier actual Windows/title-library measurements retain their historical pins; no new Windows runtime, macOS, title, GPU or performance result is claimed. AI-assisted: yes. Evidence: [immutable Linux qualification bundle](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/cpu-complete-current-main-linux-20261029.tar.gz). Its SHA-256 is `ca6b35926bcc6d3f21a9650517894c86b65594e2e2b653c5c32cd1c1de89c835`. No fresh Windows runtime execution is claimed; older measurements retain their recorded source pins. AI-assisted: yes (Codex). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#11907 and #11893 merged; their implementation is retained in pinned main) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-28 12:27:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T12:27:36Z.

Review: CHANGES_REQUESTED


The measured narrow-format behavior is well evidenced, but two parts of this diff remain unsettled:

  1. KnownConversions no longer contains C, and FormatWindows now prints %C without taking an argument, but NumberedArgumentClasses still classifies C as an integer conversion ("diouxXcCsSpn"). It eagerly fetches all classified positional arguments in FormatArguments::Number before FormatWindows handles the conversion. Thus a positional %1$C is still treated as requiring/fetching an argument even though the measured narrow %C consumes none; the existing positional test was changed to avoid this case and the PR says positional %C is unmeasured. Please remove C from that classifier or make positional %C fail conservatively until measured, and add a regression that pins the chosen behavior.

  2. The hardware comparison described here calls the titles’ snprintf NID. The diff also changes the separate FormatWide/swprintf path: it now ignores previously rejected lengths and prints unknown conversions rather than throwing. GuestWideFormatting tests encode these new outcomes, but I could not find a title-side swprintf comparison or other source for them. Please provide that evidence, or keep the wide changes at their previous conservative behavior and record the remaining wide-format gap as debt until measured.

Exact-head diff check, conventions, and test-registration checks pass (202 scripts). The Windows title-side and formatter evidence in the PR is useful for the narrow path; hosted checks for this head are still pending. I have not approved.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5682551247 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12397#pullrequestreview-5682551247). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T12:27:36Z. **Review:** CHANGES_REQUESTED --- The measured narrow-format behavior is well evidenced, but two parts of this diff remain unsettled: 1. `KnownConversions` no longer contains `C`, and `FormatWindows` now prints `%C` without taking an argument, but `NumberedArgumentClasses` still classifies `C` as an integer conversion (`"diouxXcCsSpn"`). It eagerly fetches all classified positional arguments in `FormatArguments::Number` before `FormatWindows` handles the conversion. Thus a positional `%1$C` is still treated as requiring/fetching an argument even though the measured narrow `%C` consumes none; the existing positional test was changed to avoid this case and the PR says positional `%C` is unmeasured. Please remove `C` from that classifier or make positional `%C` fail conservatively until measured, and add a regression that pins the chosen behavior. 2. The hardware comparison described here calls the titles’ `snprintf` NID. The diff also changes the separate `FormatWide`/`swprintf` path: it now ignores previously rejected lengths and prints unknown conversions rather than throwing. `GuestWideFormatting` tests encode these new outcomes, but I could not find a title-side `swprintf` comparison or other source for them. Please provide that evidence, or keep the wide changes at their previous conservative behavior and record the remaining wide-format gap as debt until measured. Exact-head diff check, conventions, and test-registration checks pass (202 scripts). The Windows title-side and formatter evidence in the PR is useful for the narrow path; hosted checks for this head are still pending. I have not approved.
MarcZX10 commented 2026-10-28 12:37:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T12:37:14Z.

Review: CHANGES_REQUESTED


Follow-up on exact head 0e1fc1e540baf0a466f8068839967b8b4599cedc. The new title-side swprintf comparison addresses my earlier wide-format evidence request. Two issues remain:

  1. In core/libs/prx/libc/include/WindowsFormatting.hpp, KnownConversions now excludes uppercase C, so FormatWindows prints %C without consuming an argument, but NumberedArgumentClasses still classifies C as an integer in "diouxXcCsSpn". FormatArguments::Number eagerly fetches every classified positional argument before formatting. Thus a positional %1$C still reads an argument even though %C is handled as non-consuming; the changed positional test avoids this case. Please remove C from that classifier (or conservatively reject positional %C) and add a regression that pins the intended no-consumption behavior.

  2. This update adds ApplicableLength behavior for unsupported length/conversion combinations in both narrow and wide formatting (%Ld, %hhc, %hf, %hp, %Ln, etc.). The PR's stated title comparisons cover %C, %lc, %S and unknown conversions, but I don't see a title-side measurement for those ignored-length cases. Unit expectations alone don't establish console behavior. Please provide matching title-side evidence for the new length cases and update Tested, or keep this change limited to the measured conversions and retain the previous conservative behavior for unmeasured combinations.

I have not run the formatter binaries locally: this worktree has no configured build tree, and the registration audit only confirms that 202 test scripts are registered. git diff --check, conventions and the script-registration audit pass. Hosted checks are pending; I am not approving.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5682673488 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12397#pullrequestreview-5682673488). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T12:37:14Z. **Review:** CHANGES_REQUESTED --- Follow-up on exact head `0e1fc1e540baf0a466f8068839967b8b4599cedc`. The new title-side `swprintf` comparison addresses my earlier wide-format evidence request. Two issues remain: 1. In `core/libs/prx/libc/include/WindowsFormatting.hpp`, `KnownConversions` now excludes uppercase `C`, so `FormatWindows` prints `%C` without consuming an argument, but `NumberedArgumentClasses` still classifies `C` as an integer in `"diouxXcCsSpn"`. `FormatArguments::Number` eagerly fetches every classified positional argument before formatting. Thus a positional `%1$C` still reads an argument even though `%C` is handled as non-consuming; the changed positional test avoids this case. Please remove `C` from that classifier (or conservatively reject positional `%C`) and add a regression that pins the intended no-consumption behavior. 2. This update adds `ApplicableLength` behavior for unsupported length/conversion combinations in both narrow and wide formatting (`%Ld`, `%hhc`, `%hf`, `%hp`, `%Ln`, etc.). The PR's stated title comparisons cover `%C`, `%lc`, `%S` and unknown conversions, but I don't see a title-side measurement for those ignored-length cases. Unit expectations alone don't establish console behavior. Please provide matching title-side evidence for the new length cases and update `Tested`, or keep this change limited to the measured conversions and retain the previous conservative behavior for unmeasured combinations. I have not run the formatter binaries locally: this worktree has no configured build tree, and the registration audit only confirms that 202 test scripts are registered. `git diff --check`, conventions and the script-registration audit pass. Hosted checks are pending; I am not approving.
MarcZX10 commented 2026-10-28 12:49:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T12:49:36Z.

Review: CHANGES_REQUESTED


Follow-up on the new head : the positional-argument issue is fixed. Removing from and the new // regressions now match the stated non-consuming unknown-conversion behavior.

The other evidence gap remains: this PR changes for unsupported length/conversion combinations in both narrow and wide formatting. The title-side examples listed in the body cover // and /, but not combinations such as , , , or . The unit expectations alone do not establish the titles' behavior for these newly accepted formats. Please add title-side comparisons for the behavior being changed, or keep the previous conservative error path for combinations without evidence and cover the measured cases with regressions. I did not run the formatting binaries locally; the added regression source has not been executed in this review. No approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5682820676 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12397#pullrequestreview-5682820676). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T12:49:36Z. **Review:** CHANGES_REQUESTED --- Follow-up on the new head : the positional-argument issue is fixed. Removing from and the new // regressions now match the stated non-consuming unknown-conversion behavior. The other evidence gap remains: this PR changes for unsupported length/conversion combinations in both narrow and wide formatting. The title-side examples listed in the body cover // and /, but not combinations such as , , , or . The unit expectations alone do not establish the titles' behavior for these newly accepted formats. Please add title-side comparisons for the behavior being changed, or keep the previous conservative error path for combinations without evidence and cover the measured cases with regressions. I did not run the formatting binaries locally; the added regression source has not been executed in this review. No approval.
MarcZX10 commented 2026-10-29 00:17:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T00:17:13Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The updated test and title-comparison evidence addresses the earlier review questions, but the current head conflicts with main in the libc debt file and needs an integration rerun.

What I ran

Reviewed exact head f2548977ea559a13c157c8ad0e5109983745dccd, whose merge base with current main is 8ff4baf53489033dae79090640143e82d159ee4d. The merge preview onto current main 3a2b91981651569163768854a1fcdc7193b6667b conflicts in docs/dev/debt/libc.md. I inspected the exact-head formatting implementation and regression diff. Environment: Linux x86-64, Git and GitHub CLI. I did not build or run tests locally.

git fetch https://github.com/boykopovar/AnyPS5.git main:refs/review/main-20261029 refs/pull/12397/head:refs/review/pr-12397-20261029
git merge-base refs/review/main-20261029 refs/review/pr-12397-20261029
git merge-tree --write-tree refs/review/main-20261029 refs/review/pr-12397-20261029
git diff --unified=3 refs/review/main-20261029...refs/review/pr-12397-20261029 -- core/libs/prx/libc/include/WindowsFormatting.hpp core/libs/tests/Formatting.cpp

Results

Check Result
Current-main merge preview Fails with a content conflict in docs/dev/debt/libc.md
Exact-head Linux tests Author reports guest_formatting and guest_wide_formatting pass 3/3 on this head
Title comparison Author/reviewer report zero differences for the measured %C, %S, %y and inherited length cases on their stated Windows-host title libraries
Hosted checks Windows, relinker, ASan, conventions and policy checks pass; Linux product is skipped
Local build/tests Not run
Command output
head=f2548977ea559a13c157c8ad0e5109983745dccd
merge-base=8ff4baf53489033dae79090640143e82d159ee4d
git merge-tree --write-tree: 18ea414c9f43fd4eaee320251cda6aa1507edb10
Auto-merging docs/dev/debt/libc.md
CONFLICT (content): Merge conflict in docs/dev/debt/libc.md

The PR body records Depends on: #11907 (and through it #11893); both remain open. Keep that order while resolving the current-main conflict.

Negative control

Assertion Change to code under test Outcome
Unknown-conversion behavior matches the measured title libraries Comparison uses current-main formatting as baseline and this PR's merged changes as candidate Author/reviewer report: baseline crashes on the first swprintf %5S case; candidate has 0 differences over the reported 37-format copy-rule set. I did not reproduce this comparison locally

Findings

Blocking

  • This head does not merge cleanly with current main: docs/dev/debt/libc.md conflicts. Resolve the debt entry against current text, keep the recorded #11907 → #11893 dependency chain, and rerun the exact focused tests on the rebased head. The current test/comparison evidence is from older bases.

Non-blocking

  • The updated code and tests address the earlier positional-%C argument and title-evidence questions. I did not find an additional defect in the reviewed diff.
  • The separate %.1lc concern is not established by the newly changed behavior here; this PR's %lc change is the zero-character path. I am not treating that comment as a blocker for this head.

Sources

Not verified

  • I did not run the formatting tests or title comparison locally. The exact-head Linux tests and Windows-host comparisons are author/reviewer-provided.
  • No PS5 execution is included in the reported comparison; these are calls into bundled title libraries from a Windows host.

To get this to a good state

Rebase onto current main, resolve the debt entry, preserve the stated dependencies, and rerun guest_formatting and guest_wide_formatting on the new head. Record the exact base and head. I will re-check the merged diff and repeat the focused validation available here.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691351819 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12397#pullrequestreview-5691351819). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T00:17:13Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The updated test and title-comparison evidence addresses the earlier review questions, but the current head conflicts with `main` in the libc debt file and needs an integration rerun. ## What I ran Reviewed exact head `f2548977ea559a13c157c8ad0e5109983745dccd`, whose merge base with current `main` is `8ff4baf53489033dae79090640143e82d159ee4d`. The merge preview onto current `main` `3a2b91981651569163768854a1fcdc7193b6667b` conflicts in `docs/dev/debt/libc.md`. I inspected the exact-head formatting implementation and regression diff. Environment: Linux x86-64, Git and GitHub CLI. I did not build or run tests locally. ```sh git fetch https://github.com/boykopovar/AnyPS5.git main:refs/review/main-20261029 refs/pull/12397/head:refs/review/pr-12397-20261029 git merge-base refs/review/main-20261029 refs/review/pr-12397-20261029 git merge-tree --write-tree refs/review/main-20261029 refs/review/pr-12397-20261029 git diff --unified=3 refs/review/main-20261029...refs/review/pr-12397-20261029 -- core/libs/prx/libc/include/WindowsFormatting.hpp core/libs/tests/Formatting.cpp ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Fails with a content conflict in `docs/dev/debt/libc.md` | | Exact-head Linux tests | Author reports `guest_formatting` and `guest_wide_formatting` pass 3/3 on this head | | Title comparison | Author/reviewer report zero differences for the measured `%C`, `%S`, `%y` and inherited length cases on their stated Windows-host title libraries | | Hosted checks | Windows, relinker, ASan, conventions and policy checks pass; Linux product is skipped | | Local build/tests | Not run | <details> <summary>Command output</summary> ```text head=f2548977ea559a13c157c8ad0e5109983745dccd merge-base=8ff4baf53489033dae79090640143e82d159ee4d git merge-tree --write-tree: 18ea414c9f43fd4eaee320251cda6aa1507edb10 Auto-merging docs/dev/debt/libc.md CONFLICT (content): Merge conflict in docs/dev/debt/libc.md ``` The PR body records `Depends on: #11907 (and through it #11893)`; both remain open. Keep that order while resolving the current-main conflict. </details> ## Negative control | Assertion | Change to code under test | Outcome | |---|---|---| | Unknown-conversion behavior matches the measured title libraries | Comparison uses current-main formatting as baseline and this PR's merged changes as candidate | Author/reviewer report: baseline crashes on the first `swprintf` `%5S` case; candidate has 0 differences over the reported 37-format copy-rule set. I did not reproduce this comparison locally | ## Findings ### Blocking - This head does not merge cleanly with current `main`: `docs/dev/debt/libc.md` conflicts. Resolve the debt entry against current text, keep the recorded #11907 → #11893 dependency chain, and rerun the exact focused tests on the rebased head. The current test/comparison evidence is from older bases. ### Non-blocking - The updated code and tests address the earlier positional-`%C` argument and title-evidence questions. I did not find an additional defect in the reviewed diff. - The separate `%.1lc` concern is not established by the newly changed behavior here; this PR's `%lc` change is the zero-character path. I am not treating that comment as a blocker for this head. ## Sources - [Current contribution rules for current bases and declared overlap order](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/CONTRIBUTING.md#L57-L67) - [Implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/f2548977ea559a13c157c8ad0e5109983745dccd/core/libs/prx/libc/include/WindowsFormatting.hpp) - [Regression tests at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/f2548977ea559a13c157c8ad0e5109983745dccd/core/libs/tests/Formatting.cpp) - [Current-main debt entry involved in the conflict](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/docs/dev/debt/libc.md) ## Not verified - I did not run the formatting tests or title comparison locally. The exact-head Linux tests and Windows-host comparisons are author/reviewer-provided. - No PS5 execution is included in the reported comparison; these are calls into bundled title libraries from a Windows host. ## To get this to a good state Rebase onto current `main`, resolve the debt entry, preserve the stated dependencies, and rerun `guest_formatting` and `guest_wide_formatting` on the new head. Record the exact base and head. I will re-check the merged diff and repeat the focused validation available here.
MarcZX10 commented 2026-10-29 10:26:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T10:26:49Z.

Review: CHANGES_REQUESTED


Re-reviewed — changes requested

The new %lc precision fix and added cases address the formatting issue raised in the thread. The title-side matrix and negative-control results are useful: they cover the length/conversion pairs and report all 48 comparisons matching both reference libraries. The focused Linux and Windows runs are also materially stronger than the earlier report.

What I checked

  • Exact head: 41cfd4560a227a30c4848186ba6b8568998835e6.
  • Current main: bc3e33f4e334996ab9ba5cbf8544942465be18f3.
  • git merge-tree --write-tree is otherwise clean but conflicts in docs/dev/debt/libc.md.
  • git diff --check passes and tools/check_conventions.py passes against current main.
  • I inspected the changed narrow/wide formatting dispatch and regressions for ignored lengths, positional unknown conversions, null %lc, byte-based width and ignored %lc precision.
  • I did not independently build or run the formatting tests. The posted run is on the PR's older base, so it does not validate the current-main integrated tree.

Still blocking

Please resolve the current debt-file conflict while retaining the entries from both main and this PR, then rerun the focused formatting suites on that integrated head. The posted Linux/Windows candidate-library results address the behavioral comparison, but the branch still has not been validated after integrating today's main.

I found no additional source defect in the new %lc fix on inspection. I will reassess after the integration check.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696203979 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12397#pullrequestreview-5696203979). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T10:26:49Z. **Review:** CHANGES_REQUESTED --- # Re-reviewed — changes requested The new `%lc` precision fix and added cases address the formatting issue raised in the thread. The title-side matrix and negative-control results are useful: they cover the length/conversion pairs and report all 48 comparisons matching both reference libraries. The focused Linux and Windows runs are also materially stronger than the earlier report. ## What I checked - Exact head: `41cfd4560a227a30c4848186ba6b8568998835e6`. - Current `main`: `bc3e33f4e334996ab9ba5cbf8544942465be18f3`. - `git merge-tree --write-tree` is otherwise clean but conflicts in `docs/dev/debt/libc.md`. - `git diff --check` passes and `tools/check_conventions.py` passes against current `main`. - I inspected the changed narrow/wide formatting dispatch and regressions for ignored lengths, positional unknown conversions, null `%lc`, byte-based width and ignored `%lc` precision. - I did not independently build or run the formatting tests. The posted run is on the PR's older base, so it does not validate the current-main integrated tree. ## Still blocking Please resolve the current debt-file conflict while retaining the entries from both `main` and this PR, then rerun the focused formatting suites on that integrated head. The posted Linux/Windows candidate-library results address the behavioral comparison, but the branch still has not been validated after integrating today's `main`. I found no additional source defect in the new `%lc` fix on inspection. I will reassess after the integration check.
MarcZX10 commented 2026-10-29 13:36:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T13:36:51Z.

Review: APPROVED


Re-checked — new head, looks good

The new head resolves the debt-file conflict, preserves the measured formatting changes, and includes an exact-head Windows rerun with a negative control.

What I ran

  • Reviewed head 078102a03f127cd5dee128d1244195d4034916e4 against current main dfcc0e17cb254d08fec9ec120e362620795d59a0; the merge preview is clean.
  • Compared current-main changes since the author's integrated base 95137178d026 with the PR file list; no PR files changed in that interval.
  • Ran git diff --check upstream/main...refs/remotes/review/pr-12397; it passed with no output.
  • Read the author's Windows 11 focused formatting rerun and negative-control report on this head. I did not run a local compiler or formatting tests.
git fetch upstream main
git merge-tree --write-tree upstream/main refs/remotes/review/pr-12397
git diff --name-only 95137178d026..upstream/main
gh pr view 12397 -R boykopovar/AnyPS5 --json files --jq '.files[].path'
git diff --check upstream/main...refs/remotes/review/pr-12397
gh pr checks 12397 -R boykopovar/AnyPS5

Results

Check Result
Merge preview against current main Pass; clean tree 1f79a818608bd391470cb8472eac564da0f1e637
Main-path comparison since reported test base No changed PR files
Diff check Pass; no output
Hosted conventions, eligibility, labels, and report Pass
Author-reported Windows guest_formatting and guest_wide_formatting Pass 3/3 each on exact head
Hosted Windows and other platform checks Pending; hosted Linux product job is skipped
Unedited command output
1f79a818608bd391470cb8472eac564da0f1e637
conventions	pass	15s	https://github.com/boykopovar/AnyPS5/actions/runs/40880903467/job/123471831507
labels	pass	8s	https://github.com/boykopovar/AnyPS5/actions/runs/40880903392/job/123471830652
report	pass	49s	https://github.com/boykopovar/AnyPS5/actions/runs/40880911891/job/123471857888
eligibility	pass	7s	https://github.com/boykopovar/AnyPS5/actions/runs/40880911911/job/123472024744
windows	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/40880911911/job/123476310032
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40880911911/job/123476312636

Negative control

Assertion Change made to code under test New test failed?
The measured narrow/wide conversion cases differ from main as reported Replaced the three changed formatter sources with main versions while keeping the tests Yes; author-reported

Findings

Blocking

None found in the reviewed head.

Non-blocking

The exact-head focused Windows run is author-reported, not independently reproduced. Hosted product Windows is still pending; Linux product tests are skipped.

Sources

Not verified

I did not independently run Linux, macOS, console, or firmware formatting tests, and I did not rerun the GTA/reference comparisons. The author's Windows run and title observations are reported evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5698581086 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12397#pullrequestreview-5698581086). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T13:36:51Z. **Review:** APPROVED --- # Re-checked — new head, looks good The new head resolves the debt-file conflict, preserves the measured formatting changes, and includes an exact-head Windows rerun with a negative control. ## What I ran - Reviewed head `078102a03f127cd5dee128d1244195d4034916e4` against current `main` `dfcc0e17cb254d08fec9ec120e362620795d59a0`; the merge preview is clean. - Compared current-main changes since the author's integrated base `95137178d026` with the PR file list; no PR files changed in that interval. - Ran `git diff --check upstream/main...refs/remotes/review/pr-12397`; it passed with no output. - Read the author's Windows 11 focused formatting rerun and negative-control report on this head. I did not run a local compiler or formatting tests. ```sh git fetch upstream main git merge-tree --write-tree upstream/main refs/remotes/review/pr-12397 git diff --name-only 95137178d026..upstream/main gh pr view 12397 -R boykopovar/AnyPS5 --json files --jq '.files[].path' git diff --check upstream/main...refs/remotes/review/pr-12397 gh pr checks 12397 -R boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Merge preview against current `main` | Pass; clean tree `1f79a818608bd391470cb8472eac564da0f1e637` | | Main-path comparison since reported test base | No changed PR files | | Diff check | Pass; no output | | Hosted conventions, eligibility, labels, and report | Pass | | Author-reported Windows `guest_formatting` and `guest_wide_formatting` | Pass 3/3 each on exact head | | Hosted Windows and other platform checks | Pending; hosted Linux product job is skipped | <details><summary>Unedited command output</summary> ```text 1f79a818608bd391470cb8472eac564da0f1e637 conventions pass 15s https://github.com/boykopovar/AnyPS5/actions/runs/40880903467/job/123471831507 labels pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/40880903392/job/123471830652 report pass 49s https://github.com/boykopovar/AnyPS5/actions/runs/40880911891/job/123471857888 eligibility pass 7s https://github.com/boykopovar/AnyPS5/actions/runs/40880911911/job/123472024744 windows pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/40880911911/job/123476310032 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/40880911911/job/123476312636 ``` </details> ## Negative control | Assertion | Change made to code under test | New test failed? | |---|---|---| | The measured narrow/wide conversion cases differ from main as reported | Replaced the three changed formatter sources with main versions while keeping the tests | Yes; author-reported | ## Findings ### Blocking None found in the reviewed head. ### Non-blocking The exact-head focused Windows run is author-reported, not independently reproduced. Hosted product Windows is still pending; Linux product tests are skipped. ## Sources - [Formatter and regression tests at the reviewed head](https://github.com/boykopovar/AnyPS5/tree/078102a03f127cd5dee128d1244195d4034916e4/core/libs) - [Author's exact-head Windows rerun and negative control](https://github.com/boykopovar/AnyPS5/pull/12397#issuecomment-6498144400) - [Performance report requirements at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/078102a03f127cd5dee128d1244195d4034916e4/.github/ISSUE_TEMPLATE/performance.yml) ## Not verified I did not independently run Linux, macOS, console, or firmware formatting tests, and I did not rerun the GTA/reference comparisons. The author's Windows run and title observations are reported evidence.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12397
No description provided.