feat(libSceLibcInternal): implement the numpunct<char> members #14373

Merged
uttam12331 merged 1 commit from upstream-pr/14373 into main 2026-11-06 18:49:54 +00:00
uttam12331 commented 2026-11-01 10:45:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by uttam12331 on 2026-11-01T10:45:41Z.


What

Implements ten libSceLibcInternal exports of std::numpunct<char> that threw NotImplemented:

Export NID
_ZNKSt8numpunctIcE13decimal_pointEv klWxQ2nKAHY
_ZNKSt8numpunctIcE13thousands_sepEv QGSIlqfIU2c
_ZNKSt8numpunctIcE8groupingEv JWplGh2O0Rs
_ZNKSt8numpunctIcE9falsenameEv 3+VwUA8-QPI
_ZNKSt8numpunctIcE8truenameEv fXUuZEw7C24
_ZNKSt8numpunctIcE16do_decimal_pointEv JXzQGOtumdM
_ZNKSt8numpunctIcE16do_thousands_sepEv zv1EMhI7R1c
_ZNKSt8numpunctIcE11do_groupingEv cnNz2ftNwEU
_ZNKSt8numpunctIcE12do_falsenameEv ozLi0i4r6ds
_ZNKSt8numpunctIcE11do_truenameEv nRf0VQ++OEw

libc now exports the five do_ members under these names; its numpunct vtable points at them instead of the private copies it had. The five public members call the facet's vtable slot, as [locale.numpunct.members] requires, so a facet whose vtable overrides a do_ member gets the override. The do_ members read the fields of the 0x30-byte facet libc's _Getcat already builds (layout from the console libc.prx, see the _Getcat entry in docs/dev/debt/libc.md). libSceLibcInternal forwards to the libc exports, as AlignedNew.cpp does. A null facet throws std::invalid_argument.

The ten placeholder entries in docs/dev/debt/libSceLibcInternal.md are replaced by one entry stating what is unverified: the console's libSceLibcInternal.sprx was not read and no title was seen calling these exports.

numpunct<wchar_t> came from #11773, which is now merged; this branch is rebased on top of it.

Tested

  • At 41102fb7b6 (this head, on main f6232fcfda, which includes #11773), Windows 11, WinLibs MinGW GCC 16.2.0 (ucrt-posix-seh), Release: the new guest_libc_internal_numpunct test and the existing guest_locale, guest_libc_internal_aligned_new and guest_libc_internal_mtx tests pass.
  • The built libSceLibcInternal.prx exports the ten NIDs and libc.prx the ten names.
  • python tools/check_conventions.py --base origin/main — passed
  • python core/libs/tests/test_public_headers.py --audit-only — passed
  • Not tested with any title.

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
  • 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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5106598863 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14373). Originally posted by [uttam12331](https://github.com/uttam12331) on 2026-11-01T10:45:41Z. --- ### What Implements ten `libSceLibcInternal` exports of `std::numpunct<char>` that threw `NotImplemented`: | Export | NID | | --- | --- | | `_ZNKSt8numpunctIcE13decimal_pointEv` | `klWxQ2nKAHY` | | `_ZNKSt8numpunctIcE13thousands_sepEv` | `QGSIlqfIU2c` | | `_ZNKSt8numpunctIcE8groupingEv` | `JWplGh2O0Rs` | | `_ZNKSt8numpunctIcE9falsenameEv` | `3+VwUA8-QPI` | | `_ZNKSt8numpunctIcE8truenameEv` | `fXUuZEw7C24` | | `_ZNKSt8numpunctIcE16do_decimal_pointEv` | `JXzQGOtumdM` | | `_ZNKSt8numpunctIcE16do_thousands_sepEv` | `zv1EMhI7R1c` | | `_ZNKSt8numpunctIcE11do_groupingEv` | `cnNz2ftNwEU` | | `_ZNKSt8numpunctIcE12do_falsenameEv` | `ozLi0i4r6ds` | | `_ZNKSt8numpunctIcE11do_truenameEv` | `nRf0VQ++OEw` | `libc` now exports the five `do_` members under these names; its numpunct vtable points at them instead of the private copies it had. The five public members call the facet's vtable slot, as [locale.numpunct.members] requires, so a facet whose vtable overrides a `do_` member gets the override. The `do_` members read the fields of the 0x30-byte facet `libc`'s `_Getcat` already builds (layout from the console `libc.prx`, see the `_Getcat` entry in `docs/dev/debt/libc.md`). `libSceLibcInternal` forwards to the `libc` exports, as `AlignedNew.cpp` does. A null facet throws `std::invalid_argument`. The ten placeholder entries in `docs/dev/debt/libSceLibcInternal.md` are replaced by one entry stating what is unverified: the console's `libSceLibcInternal.sprx` was not read and no title was seen calling these exports. `numpunct<wchar_t>` came from #11773, which is now merged; this branch is rebased on top of it. ### Tested - At `41102fb7b6` (this head, on `main` `f6232fcfda`, which includes #11773), Windows 11, WinLibs MinGW GCC 16.2.0 (ucrt-posix-seh), Release: the new `guest_libc_internal_numpunct` test and the existing `guest_locale`, `guest_libc_internal_aligned_new` and `guest_libc_internal_mtx` tests pass. - The built `libSceLibcInternal.prx` exports the ten NIDs and `libc.prx` the ten names. - `python tools/check_conventions.py --base origin/main` — passed - `python core/libs/tests/test_public_headers.py --audit-only` — passed - Not tested with any title. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [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
MarcZX10 commented 2026-11-01 11:01:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T11:01:14Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The exact heads of #14373 and #11773 conflict in two shared libc files, while neither PR declares a dependency.

What I ran

Reviewed #14373 at head bf185e78ee62efdf4eb26923988a25ff9704006a, based on main at e6f57307fa7f47165d7fc1bee945abdb2f6816e7. Both PRs individually preview cleanly against current main e67cc818696fd6e6c58ac80adc6550c54aed68e8; their pairwise merge does not. Environment: Linux x86_64, Python 3.11.2; no compiler was invoked.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14373
git diff --check e6f57307fa7f47165d7fc1bee945abdb2f6816e7...bf185e78ee62efdf4eb26923988a25ff9704006a
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base e6f57307fa7f47165d7fc1bee945abdb2f6816e7 --head bf185e78ee62efdf4eb26923988a25ff9704006a --json
python3 tools/pr_test_quality.py --root /tmp/anyps5-14373-quality --json core/libs/tests/GuestLibcInternalNumpunct.cpp
python3 /tmp/anyps5-14373-corelibs/core/libs/tests/test_public_headers.py --audit-only
python3 tools/pr_stack_check.py 14373 --repo boykopovar/AnyPS5
python3 tools/pr_stack_check.py 11773 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-11773-stack
git merge-tree --write-tree refs/review/session-20261101/14373 refs/review/session-20261101/11773
python3 tools/pr_overlap.py --branch refs/review/session-20261101/14373

The ABI and test-quality scripts are local review-workspace helpers and are absent from the PR snapshot. The public-header command ran on the exact #14373 core/libs archive plus its required tools/nid_names.py dependency.

Results

Check Result
Diff and conventions/template Passed in the precheck; diff check exited 0 with no output.
Public-header audit Passed: 399 libraries, 26,191 exports; unique declarations and umbrella coverage verified.
ABI lexical audit passed_with_warnings; its 54 heuristic findings include removed old stubs/private helpers and unrelated existing symbols. The ten new numpunct methods have declarations and definitions; the exact-head public-header audit passed.
Test-quality heuristic Reported a possible unregistered C++ test. False positive: the changed CMake file calls add_test_executable and registers guest_libc_internal_numpunct with add_test.
#14373 and #11773 against current main Each preview is clean individually.
Pairwise #14373 + #11773 merge Conflicts in core/libs/prx/libc/include/Api.hpp and core/libs/prx/libc/src/LocaleSupport.cpp.
Repository overlap helper Could not complete: its JSON parser rejected an invalid escape. The pairwise Git merge preview independently confirmed the conflict.
Hosted CI intake passed; conventions and labels were pending at the last query.
C++ tests/build Not run; they require a build. The author reports Windows tests, but I did not independently verify the tested SHA.
Unedited selected command output

Pairwise git merge-tree output:

95a2bf3bfc35cc2cf7a60a20d90cb50d0da3e89b
100644 9794adca9dd0d858c5c516bf253edd40638a729b 1	core/libs/prx/libc/include/Api.hpp
100644 54952e40014ee15cc38974ff6045e27c9ae608bf 2	core/libs/prx/libc/include/Api.hpp
100644 6be447a35c962e7ee6215510b39f5a2eb1b474a6 3	core/libs/prx/libc/include/Api.hpp
100644 fb8343411e8a22e59d0c62e6a39402f49cd036d2 1	core/libs/prx/libc/src/LocaleSupport.cpp
100644 8aeb2d7fcc685d472843f204fcdd973af474f3ca 2	core/libs/prx/libc/src/LocaleSupport.cpp
100644 05a941d4bb0aa26dc68a8602d9000f0267a0ec5a 3	core/libs/prx/libc/src/LocaleSupport.cpp

Auto-merging core/libs/prx/libc/include/Api.hpp
CONFLICT (content): Merge conflict in core/libs/prx/libc/include/Api.hpp
Auto-merging core/libs/prx/libc/src/LocaleSupport.cpp
CONFLICT (content): Merge conflict in core/libs/prx/libc/src/LocaleSupport.cpp
Auto-merging docs/dev/debt/libc.md

python3 tools/pr_overlap.py --branch refs/review/session-20261101/14373:

pr_overlap: Invalid \uXXXX escape: line 1 column 1163940 (char 1163939)

python3 /tmp/anyps5-14373-corelibs/core/libs/tests/test_public_headers.py --audit-only:

399 libraries, 26191 exports: unique declarations and umbrella coverage verified

Findings

Blocking: The PR checklist says Depends on: none, but the exact #14373 and #11773 heads conflict in libc/include/Api.hpp and libc/src/LocaleSupport.cpp. #11773 also says Depends on: none. The repository requires authors of overlapping changes to agree on landing order and declare the dependency. Please coordinate with #11773’s author, record the agreed order in the checklist, and update this branch against the chosen predecessor so the conflict is resolved.

Non-blocking: No additional source-level blocker was identified in the narrow char-facet implementation. Its C++ tests were inspected but not executed.

Sources

Not verified

No C++ compilation, CTest, Windows build, or title/console behavior was independently run. The hosted build-dependent checks were not available; the author’s Windows test report is not independently tied to a SHA in the PR description.

To get this to a good state

Agree and document the landing order with #11773’s author, then update the Depends on line and resolve the conflict against the agreed predecessor. I will rerun the same relevant checks on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5727711751 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14373#pullrequestreview-5727711751). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T11:01:14Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The exact heads of #14373 and #11773 conflict in two shared libc files, while neither PR declares a dependency. ## What I ran Reviewed #14373 at head `bf185e78ee62efdf4eb26923988a25ff9704006a`, based on `main` at `e6f57307fa7f47165d7fc1bee945abdb2f6816e7`. Both PRs individually preview cleanly against current `main` `e67cc818696fd6e6c58ac80adc6550c54aed68e8`; their pairwise merge does not. Environment: Linux x86_64, Python 3.11.2; no compiler was invoked. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14373 git diff --check e6f57307fa7f47165d7fc1bee945abdb2f6816e7...bf185e78ee62efdf4eb26923988a25ff9704006a python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base e6f57307fa7f47165d7fc1bee945abdb2f6816e7 --head bf185e78ee62efdf4eb26923988a25ff9704006a --json python3 tools/pr_test_quality.py --root /tmp/anyps5-14373-quality --json core/libs/tests/GuestLibcInternalNumpunct.cpp python3 /tmp/anyps5-14373-corelibs/core/libs/tests/test_public_headers.py --audit-only python3 tools/pr_stack_check.py 14373 --repo boykopovar/AnyPS5 python3 tools/pr_stack_check.py 11773 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-11773-stack git merge-tree --write-tree refs/review/session-20261101/14373 refs/review/session-20261101/11773 python3 tools/pr_overlap.py --branch refs/review/session-20261101/14373 ``` The ABI and test-quality scripts are local review-workspace helpers and are absent from the PR snapshot. The public-header command ran on the exact #14373 `core/libs` archive plus its required `tools/nid_names.py` dependency. ## Results | Check | Result | |---|---| | Diff and conventions/template | Passed in the precheck; diff check exited 0 with no output. | | Public-header audit | Passed: 399 libraries, 26,191 exports; unique declarations and umbrella coverage verified. | | ABI lexical audit | `passed_with_warnings`; its 54 heuristic findings include removed old stubs/private helpers and unrelated existing symbols. The ten new numpunct methods have declarations and definitions; the exact-head public-header audit passed. | | Test-quality heuristic | Reported a possible unregistered C++ test. False positive: the changed CMake file calls `add_test_executable` and registers `guest_libc_internal_numpunct` with `add_test`. | | #14373 and #11773 against current `main` | Each preview is clean individually. | | Pairwise #14373 + #11773 merge | Conflicts in `core/libs/prx/libc/include/Api.hpp` and `core/libs/prx/libc/src/LocaleSupport.cpp`. | | Repository overlap helper | Could not complete: its JSON parser rejected an invalid escape. The pairwise Git merge preview independently confirmed the conflict. | | Hosted CI | `intake` passed; `conventions` and `labels` were pending at the last query. | | C++ tests/build | Not run; they require a build. The author reports Windows tests, but I did not independently verify the tested SHA. | <details><summary>Unedited selected command output</summary> Pairwise `git merge-tree` output: ```text 95a2bf3bfc35cc2cf7a60a20d90cb50d0da3e89b 100644 9794adca9dd0d858c5c516bf253edd40638a729b 1 core/libs/prx/libc/include/Api.hpp 100644 54952e40014ee15cc38974ff6045e27c9ae608bf 2 core/libs/prx/libc/include/Api.hpp 100644 6be447a35c962e7ee6215510b39f5a2eb1b474a6 3 core/libs/prx/libc/include/Api.hpp 100644 fb8343411e8a22e59d0c62e6a39402f49cd036d2 1 core/libs/prx/libc/src/LocaleSupport.cpp 100644 8aeb2d7fcc685d472843f204fcdd973af474f3ca 2 core/libs/prx/libc/src/LocaleSupport.cpp 100644 05a941d4bb0aa26dc68a8602d9000f0267a0ec5a 3 core/libs/prx/libc/src/LocaleSupport.cpp Auto-merging core/libs/prx/libc/include/Api.hpp CONFLICT (content): Merge conflict in core/libs/prx/libc/include/Api.hpp Auto-merging core/libs/prx/libc/src/LocaleSupport.cpp CONFLICT (content): Merge conflict in core/libs/prx/libc/src/LocaleSupport.cpp Auto-merging docs/dev/debt/libc.md ``` `python3 tools/pr_overlap.py --branch refs/review/session-20261101/14373`: ```text pr_overlap: Invalid \uXXXX escape: line 1 column 1163940 (char 1163939) ``` `python3 /tmp/anyps5-14373-corelibs/core/libs/tests/test_public_headers.py --audit-only`: ```text 399 libraries, 26191 exports: unique declarations and umbrella coverage verified ``` </details> ## Findings **Blocking:** The PR checklist says `Depends on: none`, but the exact #14373 and #11773 heads conflict in `libc/include/Api.hpp` and `libc/src/LocaleSupport.cpp`. #11773 also says `Depends on: none`. The repository requires authors of overlapping changes to agree on landing order and declare the dependency. Please coordinate with #11773’s author, record the agreed order in the checklist, and update this branch against the chosen predecessor so the conflict is resolved. **Non-blocking:** No additional source-level blocker was identified in the narrow char-facet implementation. Its C++ tests were inspected but not executed. ## Sources - [Contribution rules at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/e6f57307fa7f47165d7fc1bee945abdb2f6816e7/CONTRIBUTING.md) - [#14373 exact head](https://github.com/boykopovar/AnyPS5/tree/bf185e78ee62efdf4eb26923988a25ff9704006a) - [#11773 exact head](https://github.com/boykopovar/AnyPS5/tree/90d4acce8e71ef75bbe0a27925dbc7fe2e87a403) ## Not verified No C++ compilation, CTest, Windows build, or title/console behavior was independently run. The hosted build-dependent checks were not available; the author’s Windows test report is not independently tied to a SHA in the PR description. ## To get this to a good state Agree and document the landing order with #11773’s author, then update the `Depends on` line and resolve the conflict against the agreed predecessor. I will rerun the same relevant checks on the new head.
MarcZX10 commented 2026-11-01 11:50:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T11:50:45Z.

Review: COMMENTED


Re-checked — new head, dependency declared but the branch still conflicts with #11773

The head now declares Depends on: #11773, which answers the landing-order part of my earlier request, but the branch carries cherry-picked copies of #11773's two commits instead of those commits, and it still conflicts with #11773's current head in two files.

What I ran

Exact head a82a5b1d5c7e27ed8608c338b595bc231a4e5dbf, base current main ba627802e2210187d417deb64c8f2fed8e33011f. #11773 current head 90d4acce8e71ef75bbe0a27925dbc7fe2e87a403. No build, compile or C++ test was run.

cd /marc/AnyPS5
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14373
python3 tools/pr_abi_audit.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head a82a5b1d5c7e27ed8608c338b595bc231a4e5dbf --json
git merge-tree --write-tree refs/review/rr-1140/14373 refs/review/rr-1140/11773
git merge-base --is-ancestor 90d4acce8e71ef75bbe0a27925dbc7fe2e87a403 a82a5b1d5c7e27ed8608c338b595bc231a4e5dbf
git show 6ca8946fa5 | git patch-id --stable
git show 90d4acce8e | git patch-id --stable
git show ddcf1d1a0d | git patch-id --stable
git show 452d1f32f1 | git patch-id --stable

The precheck's ABI and test-quality helpers could not run in its isolated head tree, so I ran both by hand from /marc/AnyPS5. The test-quality helper was run on the changed test files at this head.

Results

Check Result
Precheck diff check passed
Precheck conventions and PR template passed
Precheck live dependency and mergeability merge previews clean for each head alone; stack report: current_dependency_head_not_included for #11773 to #14373
Changed-export ABI audit, by hand passed_with_warnings: 1844 symbols, 60 lexical findings, for example AssignCString and CodecvtLength (public declaration not found). Not triaged one by one in this run
Test-quality heuristic, by hand two registration findings. GuestLibcInternalNumpunct.cpp is registered at core/libs/prx/libSceLibcInternal/CMakeLists.txt:12 through a variable, so this is a false positive
Trial merge of this head with #11773's current head conflicts in core/libs/prx/libc/include/Api.hpp and core/libs/prx/libc/src/LocaleSupport.cpp
Patch-ID comparison 6ca8946fa5 and 90d4acce8e share patch-id 07a7f71fbfe565309cf0e25c3a6f143249f59815; ddcf1d1a0d and 452d1f32f1 share 72b7cbcccfb05dfdc04a52442ad855dd6dff467b
Hosted CI at this head pending at review time

Findings

Blocking: none.

Non-blocking, with a requested next step:

  1. This is not a true stack on #11773. The head contains 6ca8946fa5 and ddcf1d1a0d, which are copies of #11773's 90d4acce8e and 452d1f32f1 with the same content but different commit IDs. #11773's current head is not an ancestor of this head, and the trial merge of the two heads conflicts in Api.hpp and LocaleSupport.cpp, the same two files the body names.
  2. The smallest next step is to rebase this branch onto #11773's current head 90d4acce8e so that the two commits are shared rather than copied, and to resolve the two conflicts in this PR's own commit. The alternative is to keep the copies and resolve the conflicts again when #11773 lands. After either change, the stack report should show the dependency head included.

Sources

Not verified

  • No build, compile or test was run here. The author's Windows 11 results at a82a5b1d5c are author-reported and were not reproduced.
  • The 60 lexical ABI findings were not triaged one by one in this run.
  • Whether the copies apply cleanly after #11773 lands was not simulated beyond the current heads.

To get this to a good state

Rebase onto #11773's current head, or drop the copies once #11773 has merged, resolve the two conflicts, and rerun the precheck and the stack check on the new head. My review of the source changes will follow the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5727906653 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14373#pullrequestreview-5727906653). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T11:50:45Z. **Review:** COMMENTED --- # Re-checked — new head, dependency declared but the branch still conflicts with #11773 The head now declares `Depends on: #11773`, which answers the landing-order part of my earlier request, but the branch carries cherry-picked copies of #11773's two commits instead of those commits, and it still conflicts with #11773's current head in two files. ## What I ran Exact head `a82a5b1d5c7e27ed8608c338b595bc231a4e5dbf`, base current `main` `ba627802e2210187d417deb64c8f2fed8e33011f`. #11773 current head `90d4acce8e71ef75bbe0a27925dbc7fe2e87a403`. No build, compile or C++ test was run. ```sh cd /marc/AnyPS5 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14373 python3 tools/pr_abi_audit.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head a82a5b1d5c7e27ed8608c338b595bc231a4e5dbf --json git merge-tree --write-tree refs/review/rr-1140/14373 refs/review/rr-1140/11773 git merge-base --is-ancestor 90d4acce8e71ef75bbe0a27925dbc7fe2e87a403 a82a5b1d5c7e27ed8608c338b595bc231a4e5dbf git show 6ca8946fa5 | git patch-id --stable git show 90d4acce8e | git patch-id --stable git show ddcf1d1a0d | git patch-id --stable git show 452d1f32f1 | git patch-id --stable ``` The precheck's ABI and test-quality helpers could not run in its isolated head tree, so I ran both by hand from `/marc/AnyPS5`. The test-quality helper was run on the changed test files at this head. ## Results | Check | Result | |---|---| | Precheck diff check | passed | | Precheck conventions and PR template | passed | | Precheck live dependency and mergeability | merge previews clean for each head alone; stack report: `current_dependency_head_not_included` for #11773 to #14373 | | Changed-export ABI audit, by hand | `passed_with_warnings`: 1844 symbols, 60 lexical findings, for example `AssignCString` and `CodecvtLength` (public declaration not found). Not triaged one by one in this run | | Test-quality heuristic, by hand | two registration findings. `GuestLibcInternalNumpunct.cpp` is registered at `core/libs/prx/libSceLibcInternal/CMakeLists.txt:12` through a variable, so this is a false positive | | Trial merge of this head with #11773's current head | conflicts in `core/libs/prx/libc/include/Api.hpp` and `core/libs/prx/libc/src/LocaleSupport.cpp` | | Patch-ID comparison | `6ca8946fa5` and `90d4acce8e` share patch-id `07a7f71fbfe565309cf0e25c3a6f143249f59815`; `ddcf1d1a0d` and `452d1f32f1` share `72b7cbcccfb05dfdc04a52442ad855dd6dff467b` | | Hosted CI at this head | pending at review time | ## Findings **Blocking:** none. **Non-blocking, with a requested next step:** 1. This is not a true stack on #11773. The head contains `6ca8946fa5` and `ddcf1d1a0d`, which are copies of #11773's `90d4acce8e` and `452d1f32f1` with the same content but different commit IDs. #11773's current head is not an ancestor of this head, and the trial merge of the two heads conflicts in `Api.hpp` and `LocaleSupport.cpp`, the same two files the body names. 2. The smallest next step is to rebase this branch onto #11773's current head `90d4acce8e` so that the two commits are shared rather than copied, and to resolve the two conflicts in this PR's own commit. The alternative is to keep the copies and resolve the conflicts again when #11773 lands. After either change, the stack report should show the dependency head included. ## Sources - The copied commits and the current #11773 commits are identified above by SHA. Permalinks: https://github.com/boykopovar/AnyPS5/commit/a82a5b1d5c7e27ed8608c338b595bc231a4e5dbf and https://github.com/boykopovar/AnyPS5/commit/90d4acce8e71ef75bbe0a27925dbc7fe2e87a403 ## Not verified - No build, compile or test was run here. The author's Windows 11 results at `a82a5b1d5c` are author-reported and were not reproduced. - The 60 lexical ABI findings were not triaged one by one in this run. - Whether the copies apply cleanly after #11773 lands was not simulated beyond the current heads. ## To get this to a good state Rebase onto #11773's current head, or drop the copies once #11773 has merged, resolve the two conflicts, and rerun the precheck and the stack check on the new head. My review of the source changes will follow the new head.
MarcZX10 commented 2026-11-01 14:28:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T14:28:32Z.

Review: COMMENTED


Reviewed — no blocking findings

The ten std::numpunct<char> exports keep their NIDs and the libSceLibcInternal export NID set is unchanged (658 at both the base and the head), so the audit's name-based removals are renames, not removed exports; the locale internals changed in LocaleSupport.cpp are mostly relocations, and I did not trace the new wide-string storage path line by line.

What I ran

  • Exact head 33a00a5158c005081c6507183b0ce6491bd5096d, base ba627802e2210187d417deb64c8f2fed8e33011f.
  • Environment: Linux, /usr/bin/python3 3.11.2, no build.
  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14373 --output-dir /dev/shm/reviewer-run/precheck/14373
  • ABI audit by hand (helper absent from the head tree): python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base ba627802e2210187d417deb64c8f2fed8e33011f --head 33a00a5158c005081c6507183b0ce6491bd5096d --json (exit 0; passed_with_warnings; 60 findings: 37 public-declaration-not-found, 15 export-removed, 7 definition-not-found; 1,844 symbols). The 15 export-removed names are NumpunctDecimalPoint, NumpunctFalsename, NumpunctGrouping, NumpunctThousandsSep, NumpunctTruename and sceLibcInternalPending4_015 to _024.
  • NID sets compared across the whole directory with git ls-tree and git show on both revisions, matching every APS5_EXPORT("<NID>", name) pair: 658 NIDs at the base, 658 at the head, none missing and none added.
  • Test-quality helper on core/libs/tests/GuestLibcInternalNumpunct.cpp and core/libs/tests/GuestLocale.cpp from a head extract: one literal-path registration heuristic each.
  • Source read at head: core/libs/prx/libSceLibcInternal/Numpunct.cpp (all ten wrappers and their APS5_EXPORT lines) and the LocaleSupport.cpp diff, which moves the codecvt vtable and its functions within the file (they are at lines 282-305 and 778 at head).

Results

Precheck report, checks table, unedited (/dev/shm/reviewer-run/precheck/14373/report.md):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check ba627802e2210187d417deb64c8f2fed8e33011f...33a00a5158c005081c6507183b0ce6491bd5096d
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head 33a00a5158c005081c6507183b0ce6491bd5096d --title feat(libSceLibcInternal): implement the numpunct<char> members --body /dev/shm/reviewer-run/precheck/14373/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head 33a00a5158c005081c6507183b0ce6491bd5096d --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14373 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14373/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /dev/shm/reviewer-run/precheck/14373/head-33a00a5158c0-4369572f/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14373/head-33a00a5158c0-4369572f --json core/libs/prx/libSceLibcInternal/CMakeLists.txt core/libs/prx/libSceLibcInternal/Export.cpp core/libs/prx/libSceLibcInternal/Numpunct.cpp core/libs/prx/libSceLibcInternal/include/Api.hpp core/libs/prx/libc/include/Api.hpp core/libs/prx/libc/include/GuestLocale.hpp core/libs/prx/libc/src/LocaleSupport.cpp core/libs/tests/GuestLibcInternalNumpunct.cpp core/libs/tests/GuestLocale.cpp docs/dev/debt/libSceLibcInternal.md docs/dev/debt/libc.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Negative control

Not run. The C++ test needs a build.

Findings

Blocking: none.

Non-blocking:

  • The audit's 37 public-declaration-not-found and 7 definition-not-found entries are lexical (the audit also reports definition-not-found for setjmp_nid_postfix and longjmp_nid_postfix, which this PR does not touch, and for the old Numpunct* names it removed). They are prompts, not defects, but the author should confirm the declarations for the new wrappers are in include/Api.hpp.
  • The wide-string helper AssignWideCString allocates for strings longer than the inline capacity and sets capacity = length | GuestWideInlineCapacity. I did not trace the storage rules against the existing narrow path; the test at GuestLocale.cpp should cover a string longer than the inline capacity.

Sources

Not verified

  • The C++ tests guest_libc_internal_numpunct and guest_locale were not built or run here.
  • The wide-string storage path (AssignWideCString) was not traced line by line.
  • Hosted: at review time only conventions (one run cancelled, one succeeded) and labels had reported; the other jobs had not.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5728604382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14373#pullrequestreview-5728604382). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T14:28:32Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The ten `std::numpunct<char>` exports keep their NIDs and the `libSceLibcInternal` export NID set is unchanged (658 at both the base and the head), so the audit's name-based removals are renames, not removed exports; the locale internals changed in `LocaleSupport.cpp` are mostly relocations, and I did not trace the new wide-string storage path line by line. ## What I ran - Exact head `33a00a5158c005081c6507183b0ce6491bd5096d`, base `ba627802e2210187d417deb64c8f2fed8e33011f`. - Environment: Linux, `/usr/bin/python3` 3.11.2, no build. - Precheck: `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14373 --output-dir /dev/shm/reviewer-run/precheck/14373` - ABI audit by hand (helper absent from the head tree): `python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base ba627802e2210187d417deb64c8f2fed8e33011f --head 33a00a5158c005081c6507183b0ce6491bd5096d --json` (exit 0; `passed_with_warnings`; 60 findings: 37 `public-declaration-not-found`, 15 `export-removed`, 7 `definition-not-found`; 1,844 symbols). The 15 `export-removed` names are `NumpunctDecimalPoint`, `NumpunctFalsename`, `NumpunctGrouping`, `NumpunctThousandsSep`, `NumpunctTruename` and `sceLibcInternalPending4_015` to `_024`. - NID sets compared across the whole directory with `git ls-tree` and `git show` on both revisions, matching every `APS5_EXPORT("<NID>", name)` pair: 658 NIDs at the base, 658 at the head, none missing and none added. - Test-quality helper on `core/libs/tests/GuestLibcInternalNumpunct.cpp` and `core/libs/tests/GuestLocale.cpp` from a head extract: one literal-path registration heuristic each. - Source read at head: `core/libs/prx/libSceLibcInternal/Numpunct.cpp` (all ten wrappers and their `APS5_EXPORT` lines) and the `LocaleSupport.cpp` diff, which moves the codecvt vtable and its functions within the file (they are at lines 282-305 and 778 at head). ## Results Precheck report, checks table, unedited (`/dev/shm/reviewer-run/precheck/14373/report.md`): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check ba627802e2210187d417deb64c8f2fed8e33011f...33a00a5158c005081c6507183b0ce6491bd5096d` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head 33a00a5158c005081c6507183b0ce6491bd5096d --title feat(libSceLibcInternal): implement the numpunct<char> members --body /dev/shm/reviewer-run/precheck/14373/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head 33a00a5158c005081c6507183b0ce6491bd5096d --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14373 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14373/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /dev/shm/reviewer-run/precheck/14373/head-33a00a5158c0-4369572f/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14373/head-33a00a5158c0-4369572f --json core/libs/prx/libSceLibcInternal/CMakeLists.txt core/libs/prx/libSceLibcInternal/Export.cpp core/libs/prx/libSceLibcInternal/Numpunct.cpp core/libs/prx/libSceLibcInternal/include/Api.hpp core/libs/prx/libc/include/Api.hpp core/libs/prx/libc/include/GuestLocale.hpp core/libs/prx/libc/src/LocaleSupport.cpp core/libs/tests/GuestLibcInternalNumpunct.cpp core/libs/tests/GuestLocale.cpp docs/dev/debt/libSceLibcInternal.md docs/dev/debt/libc.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | ## Negative control Not run. The C++ test needs a build. ## Findings **Blocking:** none. **Non-blocking:** - The audit's 37 `public-declaration-not-found` and 7 `definition-not-found` entries are lexical (the audit also reports `definition-not-found` for `setjmp_nid_postfix` and `longjmp_nid_postfix`, which this PR does not touch, and for the old `Numpunct*` names it removed). They are prompts, not defects, but the author should confirm the declarations for the new wrappers are in `include/Api.hpp`. - The wide-string helper `AssignWideCString` allocates for strings longer than the inline capacity and sets `capacity = length | GuestWideInlineCapacity`. I did not trace the storage rules against the existing narrow path; the test at `GuestLocale.cpp` should cover a string longer than the inline capacity. ## Sources - Wrappers and exports at head: https://github.com/boykopovar/AnyPS5/blob/33a00a5158c005081c6507183b0ce6491bd5096d/core/libs/prx/libSceLibcInternal/Numpunct.cpp - Relocated codecvt vtable at head: https://github.com/boykopovar/AnyPS5/blob/33a00a5158c005081c6507183b0ce6491bd5096d/core/libs/prx/libc/src/LocaleSupport.cpp#L282-L305 ## Not verified - The C++ tests `guest_libc_internal_numpunct` and `guest_locale` were not built or run here. - The wide-string storage path (`AssignWideCString`) was not traced line by line. - Hosted: at review time only `conventions` (one run cancelled, one succeeded) and `labels` had reported; the other jobs had not.
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!14373
No description provided.