fix(libc): format %a like the console on Windows #9699

Merged
JJenkx merged 6 commits from upstream-pr/9699 into main 2026-10-25 15:45:12 +00:00
JJenkx commented 2026-10-22 08:56:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T08:56:26Z.


What

On Windows the guest printf family (FormatWindows) passed %a and %A to the host. UCRT gets two things wrong there compared with the libc.prx that titles ship, and the first is also a C conformance bug:

Call main (Windows, UCRT) Titles' libc.prx / this PR
%-010a of 1.5 0x001.8p+0 0x1.8p+0 (- overrides 0)
%-0#12A of 0.75 0X00001.8P-1 0X1.8P-1
%a of 0x1p-1074 0x0.0000000000001p-1022 0x1p-1074
%A of 1e-310 0X0.012688B70E62BP-1022 0X1.2688B70E62BP-1030
%.3a of 0x0.fffffffffffffp-1022 0x1.000p-1022 0x2.000p-1023
%.0a of 1e-310 0x0p-1022 0x1p-1030

Finite doubles under %a/%A are now formatted by HexFloat in WindowsFormatting.hpp:

  • a subnormal is normalised;
  • a shorter precision rounds the dropped hex digits half up, and a carry stays in the leading digit, with no renormalising, as for %.0a of 1.5 → 0x2p+0;
  • the flags follow C, so - overrides 0.

Infinities, NaN (still unsigned, as in FreeBSD; those copies print -nan) and %La keep their current paths. Since 4d3c9a73fa, Linux also formats %a and %A through the guest formatter: RequiresGuestFormatting returns true for them, as #9916 does for %e/%f/%g. The new cross-platform checks expose an unresolved Linux regression; see the independent Linux result below.

How it was checked

I ran the decrypted libc.prx of PPSA13934, PPSA07923 and PPSA05916 natively: a scratch loader maps the ELF, applies its relocations and supplies __error. Its snprintf (eLdDw6l0-bU) was called through a SysV variadic pointer on random %a/%A formats, with every flag combination, widths 0-31 and precisions none, empty and 0-19. Values covered random bit patterns, subnormals, rounding halves and small fractions. The output was compared with:

  • the draft formatter: 4 million formats across the three copies, all identical;
  • HexFloat extracted from this PR's WindowsFormatting.hpp: another 3 million, all identical.

An end-to-end run of 100,000 random snprintf calls against the built libc.prx still differs in %a/%A only for negative NaN. The other floating conversions keep their known differences (the console's %e/%f/%g produce about 20 significant digits and then zeros), which are out of scope here.

Tested

Current Linux refresh: 377e8fccec35aefea73c6eaee48b16f4c8b44ece on main 637220db112a3daf4960984290a82fcf65ba7061. The stack is rebuilt linearly in the order #9699 → #9916 → #9927 → #9958 → #10379, with no merge commits or duplicated prerequisite commits. This PR adds six original topic commits. Fresh Release libc/fixture build and guest_formatting, guest_wide_formatting, guest_stdio_variadic pass (3/3) on this exact head; conventions against the tested main and whitespace checks pass. Final-stack conventions against origin/main have zero errors (six inherited debt-length warnings). All five heads also merge cleanly with newer main c8d34aa8f4d8058d57169cc1e423ba6db00faaf0; that merge preview is not an additional runtime test. The resolution keeps main’s measured narrow NaN signs/flags, positional/unknown-conversion handling, and both CheckSizeLimits() and CheckHexFloat() test registrations. All five pinned heads, patches, checks and control logs (SHA-256 9cda806ab2a54a4a0ce012517eafb7db0441ab2665d2e49884c3d1fc5b9e0c8a). No fresh Windows, title-library comparison, physical-console, game or performance result is claimed; Windows testing remains paused. The requested fresh Windows validation on #9699 is still outstanding.

Historical validation on previous public head ac59a7401116ac8f25ba338ace126b3f50f325d2 is retained below with its original scope; references there to ‘exact head’ refer to that historical run.

Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 r7 (UCRT), Ninja, Release, -DBUILD_TESTING=ON, main 7e2ba73e4c; rebased onto main 8b3a6ba88d and retested (below).

  • guest_formatting: the new CheckHexFloat has 16 cases with the console's outputs:
    • the -/0 combinations, normalised subnormals, the carry case and half-up rounding;
    • precision 20, # with precision 0, negative zero, a negative * width, and a buffer that truncates.
    • On main it fails at the first one: [%-010a] of 0x1.8p+0 gave "[0x001.8p+0]", expected "[0x1.8p+0 ]". With this change, guest_formatting and the other formatting, scanf and stream tests (6) pass in three runs out of three.
  • After the rebase onto 8b3a6ba88d: the 28 libc formatting, scanf, stream and wide-character tests pass in three runs out of three. They pass the same way on a local merge with #9296 that keeps both new test calls: int main() { CheckSizeLimits(); RunChecks(); CheckHexFloat(); CheckAllocatingFormat(); return CheckWidePrecision() ? 0 : 1; }.
  • Full suite with the GPU hidden, ctest -j16 --timeout 120: 1890 of 1890 pass.
  • python tools/check_conventions.py --base origin/main: passes.
  • tools/pr_overlap.py --branch: text-only conflicts. #9296 changes the same main() line of Formatting.cpp; #8855 and #9552 change neighbouring libc.md lines.
  • Not tested by the author: a console or a title run. The earlier Linux failure and the passing exact-head rerun are detailed below.

Independent Linux result — routing fixed and focused rerun passed

Dom-The-Dom’s Linux review tested head 184733f90d merged onto main 24c6cc33f: Ubuntu 26.04 in Docker on Windows, GCC 15, glibc 2.43, WSL2 kernel 6.6, Release, BUILD_TESTING=ON.

guest_formatting passes on that main and fails with this PR: %a of the smallest positive subnormal goes through glibc and prints 0x0.0000000000001p-1022, whereas the new test expects the console form 0x1p-1074. Removing the subnormal rows exposes the rounding difference: %.1a of 0x1.08p+0 produces 0x1.0p+0 instead of the expected 0x1.1p+0. These are reviewer results, not a fresh local Linux build.

The routing correction is the commit "send %a to the guest formatter on Linux too" (4d3c9a73fa): CheckHexFloat stays active on every host, double %a/%A go through the guest formatter on Linux, and %La keeps its separate host path. The branch is rebased onto main 895f47f4ee; on Windows the 34 formatting, scanning, stream, wide-character and string tests pass in three runs out of three. The exact-head Linux rerun below passes both complete formatting executables; the broader 19-case Linux libc selection also passes three repetitions at this exact head (see below).

  • Linux (reviewer run): MarcZX10 ran a focused Linux check in an existing configured Release build with GCC 12: guest_formatting, including CheckHexFloat, passed with the formatting and test sources of #9958, which contains this PR. That reused an older configured tree with the PR's sources overlaid, so it is a focused Linux run, not a clean CI build.

  • Linux (Codex, fresh exact-head build): Recorded result for 4d3c9a73fa7e667bbe9ba5766069c3663fbf6bf6: Linux 7.2.9-arch1-1, GCC 16.2.1 20260810, glibc 2.44, Ninja Release, BUILD_TESTING=ON. ctest -R '^guest_(wide_)?formatting$' -V --no-tests=error --timeout 120 passes both complete executables in all three repetitions, with no skipped cases. This is two CTest cases, not the Windows 34-test selection or a full CI/title/performance result. The subsequent broader 19-case focused libc selection passes all three repetitions at this exact head; see the recorded result below. A negative control retaining the new tests and restoring only the parent production Formatting.cpp fails on the smallest positive subnormal; the candidate keeps CheckHexFloat active.

  • Broader Linux validation (exact head 4d3c9a73fa7e667bbe9ba5766069c3663fbf6bf6): Complete result. All 19 selected libc formatting, scanning, stream, string, character and locale CTest cases passed in each of three repetitions, with no skips. Linux 7.2.9-arch1-1, GCC 16.2.1, glibc 2.44, Ninja Release, BUILD_TESTING=ON. This is the exact submitted head, not a build against newer main, a full CI run, or a title/performance result. Dependent #9927 has a separate stream-test expectation failure under investigation; these passes do not establish that dependent branch passes.

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); no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source: none added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4964753786 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9699). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T08:56:26Z. --- ### What On Windows the guest `printf` family (`FormatWindows`) passed `%a` and `%A` to the host. UCRT gets two things wrong there compared with the `libc.prx` that titles ship, and the first is also a C conformance bug: | Call | `main` (Windows, UCRT) | Titles' `libc.prx` / this PR | |---|---|---| | `%-010a` of 1.5 | `0x001.8p+0` | `0x1.8p+0 ` (`-` overrides `0`) | | `%-0#12A` of 0.75 | `0X00001.8P-1` | `0X1.8P-1 ` | | `%a` of `0x1p-1074` | `0x0.0000000000001p-1022` | `0x1p-1074` | | `%A` of 1e-310 | `0X0.012688B70E62BP-1022` | `0X1.2688B70E62BP-1030` | | `%.3a` of `0x0.fffffffffffffp-1022` | `0x1.000p-1022` | `0x2.000p-1023` | | `%.0a` of 1e-310 | `0x0p-1022` | `0x1p-1030` | Finite doubles under `%a`/`%A` are now formatted by `HexFloat` in `WindowsFormatting.hpp`: - a subnormal is normalised; - a shorter precision rounds the dropped hex digits half up, and a carry stays in the leading digit, with no renormalising, as for `%.0a` of 1.5 → `0x2p+0`; - the flags follow C, so `-` overrides `0`. Infinities, NaN (still unsigned, as in FreeBSD; those copies print `-nan`) and `%La` keep their current paths. Since 4d3c9a73fa, Linux also formats `%a` and `%A` through the guest formatter: `RequiresGuestFormatting` returns true for them, as #9916 does for `%e`/`%f`/`%g`. The new cross-platform checks expose an unresolved Linux regression; see the independent Linux result below. ### How it was checked I ran the decrypted `libc.prx` of PPSA13934, PPSA07923 and PPSA05916 natively: a scratch loader maps the ELF, applies its relocations and supplies `__error`. Its `snprintf` (`eLdDw6l0-bU`) was called through a SysV variadic pointer on random `%a`/`%A` formats, with every flag combination, widths 0-31 and precisions none, empty and 0-19. Values covered random bit patterns, subnormals, rounding halves and small fractions. The output was compared with: - the draft formatter: 4 million formats across the three copies, all identical; - `HexFloat` extracted from this PR's `WindowsFormatting.hpp`: another 3 million, all identical. An end-to-end run of 100,000 random `snprintf` calls against the built `libc.prx` still differs in `%a`/`%A` only for negative NaN. The other floating conversions keep their known differences (the console's `%e`/`%f`/`%g` produce about 20 significant digits and then zeros), which are out of scope here. ### Tested Current Linux refresh: `377e8fccec35aefea73c6eaee48b16f4c8b44ece` on main `637220db112a3daf4960984290a82fcf65ba7061`. The stack is rebuilt linearly in the order #9699 → #9916 → #9927 → #9958 → #10379, with no merge commits or duplicated prerequisite commits. This PR adds six original topic commits. Fresh Release libc/fixture build and `guest_formatting`, `guest_wide_formatting`, `guest_stdio_variadic` pass (3/3) on this exact head; conventions against the tested main and whitespace checks pass. Final-stack conventions against origin/main have zero errors (six inherited debt-length warnings). All five heads also merge cleanly with newer main `c8d34aa8f4d8058d57169cc1e423ba6db00faaf0`; that merge preview is not an additional runtime test. The resolution keeps main’s measured narrow NaN signs/flags, positional/unknown-conversion handling, and both `CheckSizeLimits()` and `CheckHexFloat()` test registrations. [All five pinned heads, patches, checks and control logs](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/format-stack-main637220db-five-heads-linux-20261024.tar.gz) (SHA-256 `9cda806ab2a54a4a0ce012517eafb7db0441ab2665d2e49884c3d1fc5b9e0c8a`). No fresh Windows, title-library comparison, physical-console, game or performance result is claimed; Windows testing remains paused. The requested fresh Windows validation on #9699 is still outstanding. Historical validation on previous public head `ac59a7401116ac8f25ba338ace126b3f50f325d2` is retained below with its original scope; references there to ‘exact head’ refer to that historical run. Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 r7 (UCRT), Ninja, Release, `-DBUILD_TESTING=ON`, `main` 7e2ba73e4c; rebased onto `main` 8b3a6ba88d and retested (below). - `guest_formatting`: the new `CheckHexFloat` has 16 cases with the console's outputs: - the `-`/`0` combinations, normalised subnormals, the carry case and half-up rounding; - precision 20, `#` with precision 0, negative zero, a negative `*` width, and a buffer that truncates. - On `main` it fails at the first one: `[%-010a] of 0x1.8p+0 gave "[0x001.8p+0]", expected "[0x1.8p+0 ]"`. With this change, `guest_formatting` and the other formatting, scanf and stream tests (6) pass in three runs out of three. - After the rebase onto 8b3a6ba88d: the 28 libc formatting, scanf, stream and wide-character tests pass in three runs out of three. They pass the same way on a local merge with #9296 that keeps both new test calls: `int main() { CheckSizeLimits(); RunChecks(); CheckHexFloat(); CheckAllocatingFormat(); return CheckWidePrecision() ? 0 : 1; }`. - Full suite with the GPU hidden, `ctest -j16 --timeout 120`: 1890 of 1890 pass. - `python tools/check_conventions.py --base origin/main`: passes. - `tools/pr_overlap.py --branch`: text-only conflicts. #9296 changes the same `main()` line of `Formatting.cpp`; #8855 and #9552 change neighbouring `libc.md` lines. - Not tested by the author: a console or a title run. The earlier Linux failure and the passing exact-head rerun are detailed below. ### Independent Linux result — routing fixed and focused rerun passed [Dom-The-Dom’s Linux review](https://github.com/boykopovar/AnyPS5/pull/9699#issuecomment-6353166199) tested head `184733f90d` merged onto main `24c6cc33f`: Ubuntu 26.04 in Docker on Windows, GCC 15, glibc 2.43, WSL2 kernel 6.6, Release, `BUILD_TESTING=ON`. `guest_formatting` passes on that main and fails with this PR: `%a` of the smallest positive subnormal goes through glibc and prints `0x0.0000000000001p-1022`, whereas the new test expects the console form `0x1p-1074`. Removing the subnormal rows exposes the rounding difference: `%.1a` of `0x1.08p+0` produces `0x1.0p+0` instead of the expected `0x1.1p+0`. These are reviewer results, not a fresh local Linux build. The routing correction is the commit "send %a to the guest formatter on Linux too" (4d3c9a73fa): `CheckHexFloat` stays active on every host, double `%a`/`%A` go through the guest formatter on Linux, and `%La` keeps its separate host path. The branch is rebased onto `main` 895f47f4ee; on Windows the 34 formatting, scanning, stream, wide-character and string tests pass in three runs out of three. The exact-head Linux rerun below passes both complete formatting executables; the broader 19-case Linux libc selection also passes three repetitions at this exact head (see below). - **Linux (reviewer run):** [MarcZX10 ran a focused Linux check](https://github.com/boykopovar/AnyPS5/pull/9958#issuecomment-6354379800) in an existing configured Release build with GCC 12: `guest_formatting`, including `CheckHexFloat`, passed with the formatting and test sources of #9958, which contains this PR. That reused an older configured tree with the PR's sources overlaid, so it is a focused Linux run, not a clean CI build. - **Linux (Codex, fresh exact-head build):** [Recorded result](https://github.com/boykopovar/AnyPS5/pull/9699#issuecomment-6355204131) for `4d3c9a73fa7e667bbe9ba5766069c3663fbf6bf6`: Linux 7.2.9-arch1-1, GCC 16.2.1 20260810, glibc 2.44, Ninja Release, `BUILD_TESTING=ON`. `ctest -R '^guest_(wide_)?formatting$' -V --no-tests=error --timeout 120` passes both complete executables in all three repetitions, with no skipped cases. This is two CTest cases, not the Windows 34-test selection or a full CI/title/performance result. The subsequent broader 19-case focused libc selection passes all three repetitions at this exact head; see the recorded result below. A negative control retaining the new tests and restoring only the parent production `Formatting.cpp` fails on the smallest positive subnormal; the candidate keeps `CheckHexFloat` active. - **Broader Linux validation (exact head `4d3c9a73fa7e667bbe9ba5766069c3663fbf6bf6`):** [Complete result](https://github.com/boykopovar/AnyPS5/pull/9699#issuecomment-6356998861). All 19 selected libc formatting, scanning, stream, string, character and locale CTest cases passed in each of three repetitions, with no skips. Linux 7.2.9-arch1-1, GCC 16.2.1, glibc 2.44, Ninja Release, `BUILD_TESTING=ON`. This is the exact submitted head, not a build against newer main, a full CI run, or a title/performance result. Dependent #9927 has a separate stream-test expectation failure under investigation; these passes do not establish that dependent branch passes. ### Checklist - [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`); no silent stubs added - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source: none added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code).
JJenkx commented 2026-10-22 08:59:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T08:59:12Z.


Holding this as a draft under the intake direction on #5239: six converted titles import snprintf (eLdDw6l0-bU), but I have no title run showing one of them depends on %a output. I'll mark it ready when a title run shows it, or when the queue is under the threshold.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336879115 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9699#issuecomment-6336879115). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T08:59:12Z. --- Holding this as a draft under the intake direction on #5239: six converted titles import `snprintf` (`eLdDw6l0-bU`), but I have no title run showing one of them depends on `%a` output. I'll mark it ready when a title run shows it, or when the queue is under the threshold.
clairtonmichel commented 2026-10-22 09:22:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by clairtonmichel on 2026-10-22T09:22:13Z.


Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5):

  • Built cleanly with zero errors.
  • Ran the libc test suite (6/6 tests): 100% passed successfully (0.23s total).
  • Libc %a formatting fix is stable. Ready to merge!
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337326831 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9699#issuecomment-6337326831). Originally posted by [clairtonmichel](https://github.com/clairtonmichel) on 2026-10-22T09:22:13Z. --- Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5): - Built cleanly with zero errors. - Ran the libc test suite (6/6 tests): **100% passed successfully (0.23s total)**. - Libc `%a` formatting fix is stable. Ready to merge!
MarcZX10 commented 2026-10-22 12:20:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:20:35Z.

Review: CHANGES_REQUESTED


The new HexFloat path is clearly scoped to finite %a/%A doubles; NaNs and long doubles retain their old paths. The reported 7 million comparisons against three shipped libc.prx copies are strong evidence, and hosted relinker checks pass. I did not independently execute the Windows formatter tests on this Linux checkout.

Please update this branch to current main (8b3a6ba88d8fc74e768f1a7e8e9e36fb69842768); this head is based on 7e2ba73e4c, 13 commits behind. Re-run the focused Windows formatting tests after the update. GitHub’s automatic full Windows/Linux jobs are skipped here, so the reported Windows 11 guest_formatting results remain author-reported.

Please coordinate the overlapping core/libs/tests/Formatting.cpp test-entry change with #9296. Its CheckSizeLimits() addition and this PR’s CheckHexFloat() addition both update the same main() line. The current Depends on: none is appropriate if you agree to combine the test changes during integration; if one branch is stacked on the other, declare that dependency and preserve both test calls. The libc.md overlap with #8855/#9552 appears to be separate debt entries, but please retain the overlap notes as those branches are rebased.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5614023138 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9699#pullrequestreview-5614023138). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T12:20:35Z. **Review:** CHANGES_REQUESTED --- The new `HexFloat` path is clearly scoped to finite `%a`/`%A` doubles; NaNs and long doubles retain their old paths. The reported 7 million comparisons against three shipped `libc.prx` copies are strong evidence, and hosted relinker checks pass. I did not independently execute the Windows formatter tests on this Linux checkout. Please update this branch to current `main` (`8b3a6ba88d8fc74e768f1a7e8e9e36fb69842768`); this head is based on `7e2ba73e4c`, 13 commits behind. Re-run the focused Windows formatting tests after the update. GitHub’s automatic full Windows/Linux jobs are skipped here, so the reported Windows 11 `guest_formatting` results remain author-reported. Please coordinate the overlapping `core/libs/tests/Formatting.cpp` test-entry change with #9296. Its `CheckSizeLimits()` addition and this PR’s `CheckHexFloat()` addition both update the same `main()` line. The current `Depends on: none` is appropriate if you agree to combine the test changes during integration; if one branch is stacked on the other, declare that dependency and preserve both test calls. The `libc.md` overlap with #8855/#9552 appears to be separate debt entries, but please retain the overlap notes as those branches are rebased.
JJenkx commented 2026-10-22 12:24:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T12:24:52Z.


@MarcZX10 thanks. Rebased onto main 8b3a6ba88d (head 2d9a42e3cb, no other changes). On Windows (UCRT GCC 15.2, Release), guest_formatting, guest_wide_formatting, guest_wide_strings, guest_wide_stream_scan and the rest of the libc stream/scan set (28 tests) pass in three runs out of three. tools/check_conventions.py passes.

On #9296: I agree to combine the test entries during integration, so Depends on: none stays. I checked the combination by merging #9296's head 595dcacdf2 into this branch locally. The only conflict is the main() line, and it resolves to:

int main() { CheckSizeLimits(); RunChecks(); CheckHexFloat(); CheckAllocatingFormat(); return CheckWidePrecision() ? 0 : 1; }

With that line, the same 28 tests pass in three runs out of three. The libc.md entries for #8855 and #9552 merged without conflict, and the overlap notes in the description stay. @superhe11 FYI, whichever of us merges second only needs that one line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6340671496 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9699#issuecomment-6340671496). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T12:24:52Z. --- @MarcZX10 thanks. Rebased onto `main` 8b3a6ba88d (head 2d9a42e3cb, no other changes). On Windows (UCRT GCC 15.2, Release), `guest_formatting`, `guest_wide_formatting`, `guest_wide_strings`, `guest_wide_stream_scan` and the rest of the libc stream/scan set (28 tests) pass in three runs out of three. `tools/check_conventions.py` passes. On #9296: I agree to combine the test entries during integration, so `Depends on: none` stays. I checked the combination by merging #9296's head 595dcacdf2 into this branch locally. The only conflict is the `main()` line, and it resolves to: ```cpp int main() { CheckSizeLimits(); RunChecks(); CheckHexFloat(); CheckAllocatingFormat(); return CheckWidePrecision() ? 0 : 1; } ``` With that line, the same 28 tests pass in three runs out of three. The `libc.md` entries for #8855 and #9552 merged without conflict, and the overlap notes in the description stay. @superhe11 FYI, whichever of us merges second only needs that one line.
JJenkx commented 2026-10-22 13:28:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T13:28:52Z.


Marked ready for review. This was a draft only because of the #5239 intake hold, which @MarcZX10 has withdrawn (https://github.com/boykopovar/AnyPS5/pull/9613#issuecomment-6337453028 and on #9596).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341960965 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9699#issuecomment-6341960965). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T13:28:52Z. --- Marked ready for review. This was a draft only because of the #5239 intake hold, which @MarcZX10 has withdrawn (https://github.com/boykopovar/AnyPS5/pull/9613#issuecomment-6337453028 and on #9596).
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!9699
No description provided.