feat(libc): export the wide ctype facet vtable as data #9761

Merged
mazen320 merged 2 commits from upstream-pr/9761 into main 2026-11-04 03:58:32 +00:00
mazen320 commented 2026-10-22 13:21:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-22T13:21:47Z.


What

Export ctype<wchar_t>'s vtable (NID qdHsu+gIxRo) as eighteen zeroed uintptr_t slots so titles that resolve it as data get a 144-byte object matching console title libc.prx (PPSA16833). Facet calls through the slots still fault until methods are wired (debt note). Orthogonal to #9466 (_Getctype helpers).

#9735 (ctype<char> vtable) has landed; this wide-ctype export keeps both adjacent GuestLocale / debt entries.

Tested

  • ctest --test-dir build-win -R guest_locale — passed on tip 8bee41a347 (Windows MinGW GCC 15.2, Release, BUILD_TESTING=ON) after rebase onto upstream/main 5d6ce28fa0.
  • python tools/check_conventions.py --base upstream/main — passed.
  • Console: qdHsu+gIxRo is STT_OBJECT st_size 144 in PPSA16833 sce_module/libc.prx (dynsym).

Checklist

  • Depends on: none (#9735 landed)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4968094378 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-22T13:21:47Z. --- ### What Export `ctype<wchar_t>`'s vtable (NID `qdHsu+gIxRo`) as eighteen zeroed `uintptr_t` slots so titles that resolve it as data get a 144-byte object matching console title `libc.prx` (PPSA16833). Facet calls through the slots still fault until methods are wired (debt note). Orthogonal to #9466 (`_Getctype` helpers). #9735 (`ctype<char>` vtable) has landed; this wide-ctype export keeps both adjacent `GuestLocale` / debt entries. ### Tested - `ctest --test-dir build-win -R guest_locale` — passed on tip `8bee41a347` (Windows MinGW GCC 15.2, Release, `BUILD_TESTING=ON`) after rebase onto `upstream/main` `5d6ce28fa0`. - `python tools/check_conventions.py --base upstream/main` — passed. - Console: `qdHsu+gIxRo` is STT_OBJECT `st_size` 144 in PPSA16833 `sce_module/libc.prx` (dynsym). ### Checklist - [x] Depends on: none (#9735 landed) - Fixes: none - Unblocks: none - GPUs tested: n/a - AI-assisted: yes
harisibrar1 commented 2026-10-22 13:31:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-22T13:31:30Z.

Review: APPROVED


Checked against main b786b907c8, ps5-payload-dev/sdk sce_stubs/libSceLibcInternal.c and Dinkumware VC12 xlocale:

  • _ZTVSt5ctypeIwE is .type ..., @object in the SDK table (L11782-11784), and the NID calculator gives qdHsu+gIxRo, so exporting it as data is right. It is not exported on main yet.
  • 18 slots (144 bytes) match the layout: offset-to-top and typeinfo, then D1/D0 and _Incref/_Decref (the same order as GuestLocale::FacetVtable), then the twelve ctype<wchar_t> virtuals: do_is in both its mask/character and range forms, do_scan_is, do_scan_not, and do_tolower/do_toupper/do_widen/do_narrow each in a single-character and a range form. It follows the zeroed codecvt/num_put arrays already on main, and the debt line records that calls through it fault.
  • Small heads-up: this adds lines at the same spots as #9735 (ctype<char>) in LocaleSupport.cpp, GuestLocale.cpp and libc.md, so whichever lands second needs a quick rebase.

Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5615019398 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761#pullrequestreview-5615019398). Originally posted by [harisibrar1](https://github.com/harisibrar1) on 2026-10-22T13:31:30Z. **Review:** APPROVED --- Checked against main b786b907c8, ps5-payload-dev/sdk sce_stubs/libSceLibcInternal.c and Dinkumware VC12 xlocale: - `_ZTVSt5ctypeIwE` is `.type ..., @object` in the SDK table (L11782-11784), and the NID calculator gives `qdHsu+gIxRo`, so exporting it as data is right. It is not exported on main yet. - 18 slots (144 bytes) match the layout: offset-to-top and typeinfo, then D1/D0 and `_Incref`/`_Decref` (the same order as `GuestLocale::FacetVtable`), then the twelve `ctype<wchar_t>` virtuals: `do_is` in both its mask/character and range forms, `do_scan_is`, `do_scan_not`, and `do_tolower`/`do_toupper`/`do_widen`/`do_narrow` each in a single-character and a range form. It follows the zeroed codecvt/num_put arrays already on main, and the debt line records that calls through it fault. - Small heads-up: this adds lines at the same spots as #9735 (`ctype<char>`) in LocaleSupport.cpp, GuestLocale.cpp and libc.md, so whichever lands second needs a quick rebase. Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
MarcZX10 commented 2026-10-22 14:49:20 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


The object layout itself has a substantive approval and I found no layout defect. I’m requesting the repository-required integration follow-up for the same-line overlap and current-main base.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5616131571 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761#pullrequestreview-5616131571). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T14:49:20Z. **Review:** CHANGES_REQUESTED --- The object layout itself has a substantive approval and I found no layout defect. I’m requesting the repository-required integration follow-up for the same-line overlap and current-main base.
mazen320 commented 2026-10-22 14:57:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-22T14:57:33Z.


Coordinated with #9735: this lands second (Depends on: #9735). Both edits compose by keeping both vtable exports / tests / debt notes. Rebased onto current main (b7d1d47a5); re-ran guest_locale and conventions — passed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6343860673 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761#issuecomment-6343860673). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-22T14:57:33Z. --- Coordinated with #9735: this lands second (`Depends on: #9735`). Both edits compose by keeping both vtable exports / tests / debt notes. Rebased onto current `main` (`b7d1d47a5`); re-ran `guest_locale` and conventions — passed.
MarcZX10 commented 2026-10-22 17:02:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T17:02:17Z.

Review: COMMENTED


The earlier layout review still holds: the 18-slot data export matches the cited title object size, and the Depends on: #9735 order is recorded. The exact head ceaf3a65335bbb1c8c5c90e4bf76b70968d904d6 merges cleanly with current main (11f976b27c16ed91633f00039dba5dfd97dd7cc1); conventions and diff-check pass. The author-reported Windows guest_locale result was run on a prior base; hosted product Linux/Windows jobs are skipped. Please rebase and rerun guest_locale on the refreshed head before merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617922949 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761#pullrequestreview-5617922949). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T17:02:17Z. **Review:** COMMENTED --- The earlier layout review still holds: the 18-slot data export matches the cited title object size, and the `Depends on: #9735` order is recorded. The exact head `ceaf3a65335bbb1c8c5c90e4bf76b70968d904d6` merges cleanly with current `main` (`11f976b27c16ed91633f00039dba5dfd97dd7cc1`); conventions and diff-check pass. The author-reported Windows `guest_locale` result was run on a prior base; hosted product Linux/Windows jobs are skipped. Please rebase and rerun `guest_locale` on the refreshed head before merge.
MarcZX10 commented 2026-10-28 22:21:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T22:21:10Z.

Review: CHANGES_REQUESTED


The exact current head 8bee41a347e4e0e701422d09f9aa81227a7f3f1e exports an 18-slot wide-ctype vtable as writable data and records the unresolved virtual calls in debt. The console symbol-size measurement supports the 144-byte layout. The author reports guest_locale passing on Windows MinGW GCC 15.2 after rebasing to 5d6ce28fa0; hosted Windows, relinker, registration-context, and write-watch checks pass, while hosted Linux product tests are skipped. I did not run a local build.

Current main has since changed core/libs/prx/libc/src/LocaleSupport.cpp, which this PR also modifies. Please rebase onto current main and rerun guest_locale and conventions on the integrated tree, preserving the declared order after #9735. I found no layout defect, but the shared source has moved since the reported run.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5690455707 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761#pullrequestreview-5690455707). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T22:21:10Z. **Review:** CHANGES_REQUESTED --- The exact current head `8bee41a347e4e0e701422d09f9aa81227a7f3f1e` exports an 18-slot wide-ctype vtable as writable data and records the unresolved virtual calls in debt. The console symbol-size measurement supports the 144-byte layout. The author reports `guest_locale` passing on Windows MinGW GCC 15.2 after rebasing to `5d6ce28fa0`; hosted Windows, relinker, registration-context, and write-watch checks pass, while hosted Linux product tests are skipped. I did not run a local build. Current `main` has since changed `core/libs/prx/libc/src/LocaleSupport.cpp`, which this PR also modifies. Please rebase onto current `main` and rerun `guest_locale` and conventions on the integrated tree, preserving the declared order after #9735. I found no layout defect, but the shared source has moved since the reported run.
MarcZX10 commented 2026-10-29 00:52:49 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-checked — changes requested for current-head verification

The 18-slot wide-ctype data object and its writable-object test remain consistent with the recorded 144-byte console measurement, but the latest comment does not correspond to a rebase: GitHub still reports a head 168 commits behind current main.

What I ran

  • Inspected exact PR head ba5e700484f33f708dacf58f0e8d2b1bbd2dcd8b, its three-file diff, the latest author comment, and the PR workflow checks.
  • Compared its merge base and preview with current main.
  • Ran git diff --check and the current conventions checker against the PR head.

Results

Check Result
Current-main merge preview
Raw outputmerge-tree-exit=0; tree 51cb85326bd456226951bf7e0f6ba8df97ff5534
Branch freshness
Raw valuesMerge base 319621ba2e578bd053b0baba2877fe70520e0737; current main is 168 commits ahead. LocaleSupport.cpp changed on current main after that base.
Whitespace check
Raw outputgit diff --check upstream/main...refs/review/pr-9761 — no output; exit status 0
Hosted checks
Raw statuseswindows pass; conventions pass; Ubuntu register-context and relinker pass; relinker-asan pass; macOS register-context/relinker/write-watch pending; Linux product tests skipped
Latest rebase claim
Raw GitHub valuesCurrent PR head remains ba5e700484f33f708dacf58f0e8d2b1bbd2dcd8b; the latest comment contains literal '"$main"' and '"$t9761"' placeholders.

Negative control

The prior review reports that guest_locale passed on Windows at an earlier head and that the console symbol measured 144 bytes. The latest comment claims the test passed after integration, but its revision placeholders do not identify a verifiable commit, so I cannot treat that run as current-head evidence.

Findings

Blocking

  • CONTRIBUTING.md requires the branch to stay current with main. The actual PR head is still based on 319621ba2e, 168 commits behind current main, despite the latest comment's rebase claim. Please push the actual integrated head, rerun guest_locale_tests and conventions there, and replace the literal placeholders with the exact base/head SHAs and command output.

Non-blocking

  • The wide-ctype vtable declaration is an 18-slot writable data object, and the new test verifies all slots are writable. The stated 144-byte title measurement supports the object size. I found no new layout issue in this diff.

Sources

  • PR head ba5e700484f33f708dacf58f0e8d2b1bbd2dcd8b.
  • Current main and CONTRIBUTING.md: 3a2b919816.

Not verified

I did not run guest_locale_tests locally or verify the object against a console in this review. The author-reported latest test run cannot be tied to a SHA from the posted comment; macOS checks remain pending and Linux product tests are skipped.

To get this to a good state

Rebase/push the PR onto current main, rerun guest_locale_tests on that exact head, and update the comment with actual revision identifiers and results.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691573676 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761#pullrequestreview-5691573676). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T00:52:49Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested for current-head verification The 18-slot wide-ctype data object and its writable-object test remain consistent with the recorded 144-byte console measurement, but the latest comment does not correspond to a rebase: GitHub still reports a head 168 commits behind current main. ## What I ran - Inspected exact PR head ba5e700484f33f708dacf58f0e8d2b1bbd2dcd8b, its three-file diff, the latest author comment, and the PR workflow checks. - Compared its merge base and preview with current main. - Ran git diff --check and the current conventions checker against the PR head. ## Results | Check | Result | |---|---| | Current-main merge preview | <details><summary>Raw output</summary><code>merge-tree-exit=0</code>; tree <code>51cb85326bd456226951bf7e0f6ba8df97ff5534</code></details> | | Branch freshness | <details><summary>Raw values</summary>Merge base <code>319621ba2e578bd053b0baba2877fe70520e0737</code>; current main is 168 commits ahead. LocaleSupport.cpp changed on current main after that base.</details> | | Whitespace check | <details><summary>Raw output</summary><code>git diff --check upstream/main...refs/review/pr-9761</code> — no output; exit status 0</details> | | Hosted checks | <details><summary>Raw statuses</summary><code>windows pass; conventions pass; Ubuntu register-context and relinker pass; relinker-asan pass; macOS register-context/relinker/write-watch pending; Linux product tests skipped</code></details> | | Latest rebase claim | <details><summary>Raw GitHub values</summary>Current PR head remains <code>ba5e700484f33f708dacf58f0e8d2b1bbd2dcd8b</code>; the latest comment contains literal <code>'"$main"'</code> and <code>'"$t9761"'</code> placeholders.</details> | ## Negative control The prior review reports that guest_locale passed on Windows at an earlier head and that the console symbol measured 144 bytes. The latest comment claims the test passed after integration, but its revision placeholders do not identify a verifiable commit, so I cannot treat that run as current-head evidence. ## Findings ### Blocking - CONTRIBUTING.md requires the branch to stay current with main. The actual PR head is still based on 319621ba2e, 168 commits behind current main, despite the latest comment's rebase claim. Please push the actual integrated head, rerun guest_locale_tests and conventions there, and replace the literal placeholders with the exact base/head SHAs and command output. ### Non-blocking - The wide-ctype vtable declaration is an 18-slot writable data object, and the new test verifies all slots are writable. The stated 144-byte title measurement supports the object size. I found no new layout issue in this diff. ## Sources - PR head ba5e700484f33f708dacf58f0e8d2b1bbd2dcd8b. - Current main and CONTRIBUTING.md: 3a2b91981651569163768854a1fcdc7193b6667b. ## Not verified I did not run guest_locale_tests locally or verify the object against a console in this review. The author-reported latest test run cannot be tied to a SHA from the posted comment; macOS checks remain pending and Linux product tests are skipped. ## To get this to a good state Rebase/push the PR onto current main, rerun guest_locale_tests on that exact head, and update the comment with actual revision identifiers and results.
MarcZX10 commented 2026-10-29 05:15:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:15:23Z.

Review: APPROVED


Reviewed — looks good

The author has rebased the wide-ctype export onto current main and reports the focused locale test and conventions check passing on the updated tip; the measured object layout and current diff are consistent, and I found no blocking issue.

What I ran

  • Inspected exact head cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222 against current main 52c09d567d2fa453494dd720fcf53a98149468e4.
  • Ran the current-main merge preview and git diff --check on the exact-head diff.
  • Inspected the implementation, writable-object test, debt entry, author’s exact-head update, and current hosted checks.

Results

Check Result
Current-main merge preview Clean; tree 60ddd13e80ab3978fd02b4b41833e4513d8b0846
Diff whitespace Passed; no output
Focused test Author reports guest_locale_tests passed on Windows MinGW GCC 15.2 at updated stack tip cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222
Hosted checks Windows, Ubuntu relinker/register-context, relinker ASan, conventions, eligibility, labels and report pass; Linux product tests skipped; macOS jobs queued
Raw output
$ git merge-tree --write-tree refs/review/main-20261029b refs/review/pr-9761-20261029
60ddd13e80ab3978fd02b4b41833e4513d8b0846
exit=0
$ git diff --check refs/review/main-20261029b...refs/review/pr-9761-20261029
(no output; exit=0)

Negative control

  • Not run in this re-check. The author’s report confirms the focused test on the current stack tip; the console ELF size measurement is author-provided.

Findings

Blocking

  • None found.

Non-blocking

  • Linux product tests were skipped and macOS jobs are still queued. No Linux or console execution is claimed here.

Sources

Not verified

  • I did not rerun the locale test locally or independently remeasure the vtable on a console. The exact-head test and console measurement are reported by the author.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693169073 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761#pullrequestreview-5693169073). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T05:15:23Z. **Review:** APPROVED --- # Reviewed — looks good The author has rebased the wide-ctype export onto current `main` and reports the focused locale test and conventions check passing on the updated tip; the measured object layout and current diff are consistent, and I found no blocking issue. ## What I ran - Inspected exact head `cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222` against current `main` `52c09d567d2fa453494dd720fcf53a98149468e4`. - Ran the current-main merge preview and `git diff --check` on the exact-head diff. - Inspected the implementation, writable-object test, debt entry, author’s exact-head update, and current hosted checks. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `60ddd13e80ab3978fd02b4b41833e4513d8b0846` | | Diff whitespace | Passed; no output | | Focused test | Author reports `guest_locale_tests` passed on Windows MinGW GCC 15.2 at updated stack tip `cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222` | | Hosted checks | Windows, Ubuntu relinker/register-context, relinker ASan, conventions, eligibility, labels and report pass; Linux product tests skipped; macOS jobs queued | <details> <summary>Raw output</summary> ```text $ git merge-tree --write-tree refs/review/main-20261029b refs/review/pr-9761-20261029 60ddd13e80ab3978fd02b4b41833e4513d8b0846 exit=0 $ git diff --check refs/review/main-20261029b...refs/review/pr-9761-20261029 (no output; exit=0) ``` </details> ## Negative control - Not run in this re-check. The author’s report confirms the focused test on the current stack tip; the console ELF size measurement is author-provided. ## Findings ### Blocking - None found. ### Non-blocking - Linux product tests were skipped and macOS jobs are still queued. No Linux or console execution is claimed here. ## Sources - [Implementation at reviewed head](https://github.com/boykopovar/AnyPS5/blob/cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222/core/libs/prx/libc/src/LocaleSupport.cpp) - [Test at reviewed head](https://github.com/boykopovar/AnyPS5/blob/cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222/core/libs/tests/GuestLocale.cpp) - [Debt entry at reviewed head](https://github.com/boykopovar/AnyPS5/blob/cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222/docs/dev/debt/libc.md) - [Contribution rules at current main](https://github.com/boykopovar/AnyPS5/blob/52c09d567d2fa453494dd720fcf53a98149468e4/CONTRIBUTING.md#L57-L66) ## Not verified - I did not rerun the locale test locally or independently remeasure the vtable on a console. The exact-head test and console measurement are reported by the author.
MarcZX10 commented 2026-11-01 03:19:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T03:19:24Z.

Review: APPROVED


Re-checked — new head, looks good

The current head keeps the 18-slot zero-initialized wide-ctype vtable and its test intact after rebasing; I found no blocking issue.

What I ran

Reviewed head 5e1b84b4762473ad1c12d263dd22204013299934 against current main dc9dc7eaaeaf99b1c491d426e68bb999def3da16; the merge preview was clean. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. No build or C++ test was run locally.

git diff --check dc9dc7eaaeaf99b1c491d426e68bb999def3da16...5e1b84b4762473ad1c12d263dd22204013299934
python3 tools/check_conventions.py --base dc9dc7eaaeaf99b1c491d426e68bb999def3da16 --head 5e1b84b4762473ad1c12d263dd22204013299934 --title 'feat(libc): export the wide ctype facet vtable as data' --body /tmp/anyps5-pr-precheck-9761-current/pr-body.md
python3 tools/pr_stack_check.py 9761 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-9761-current/stack

Results

Check Result
Diff check Passed
Conventions and PR template Passed
Current-main merge preview Clean
Hosted conventions, library-portability, report Passed; eligibility and labels were queued at refresh
Focused locale test Author reports it passed at earlier head cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222; the vtable and dedicated test are unchanged in the current head, but I did not rerun the binary
Unedited local output
$ git diff --check dc9dc7eaaeaf99b1c491d426e68bb999def3da16...5e1b84b4762473ad1c12d263dd22204013299934
[no output; exit status 0]
$ python3 tools/check_conventions.py --base dc9dc7eaaeaf99b1c491d426e68bb999def3da16 --head 5e1b84b4762473ad1c12d263dd22204013299934 --title 'feat(libc): export the wide ctype facet vtable as data' --body /tmp/anyps5-pr-precheck-9761-current/pr-body.md
All conventions checks passed.
$ python3 tools/pr_stack_check.py 9761 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-9761-current/stack
/tmp/anyps5-pr-precheck-9761-current/stack/stack-report.md
/tmp/anyps5-pr-precheck-9761-current/stack/stack-report.json

Negative control

Assertion Change to code under test Did the test fail?
Every wide-ctype vtable slot starts zero and remains writable No mutation performed locally Not run on this head; author-reported test at the earlier head only

Findings

Blocking

None found.

Non-blocking

No local C++ test result is available for this exact head; the added vtable and test code match the author-reported tested version.

Sources

Not verified

No local build or CTest run, Windows/macOS runtime, or console measurement was performed. The author-reported guest_locale result applies to the earlier head, not a test run I independently reproduced on this SHA.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5726222454 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9761#pullrequestreview-5726222454). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T03:19:24Z. **Review:** APPROVED --- # Re-checked — new head, looks good The current head keeps the 18-slot zero-initialized wide-ctype vtable and its test intact after rebasing; I found no blocking issue. ## What I ran Reviewed head `5e1b84b4762473ad1c12d263dd22204013299934` against current `main` `dc9dc7eaaeaf99b1c491d426e68bb999def3da16`; the merge preview was clean. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. No build or C++ test was run locally. ```sh git diff --check dc9dc7eaaeaf99b1c491d426e68bb999def3da16...5e1b84b4762473ad1c12d263dd22204013299934 python3 tools/check_conventions.py --base dc9dc7eaaeaf99b1c491d426e68bb999def3da16 --head 5e1b84b4762473ad1c12d263dd22204013299934 --title 'feat(libc): export the wide ctype facet vtable as data' --body /tmp/anyps5-pr-precheck-9761-current/pr-body.md python3 tools/pr_stack_check.py 9761 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-9761-current/stack ``` ## Results | Check | Result | |---|---| | Diff check | Passed | | Conventions and PR template | Passed | | Current-main merge preview | Clean | | Hosted conventions, library-portability, report | Passed; eligibility and labels were queued at refresh | | Focused locale test | Author reports it passed at earlier head `cb47c0c99b91c33ba3e6c3335cf04f8e2e3c1222`; the vtable and dedicated test are unchanged in the current head, but I did not rerun the binary | <details><summary>Unedited local output</summary> ```text $ git diff --check dc9dc7eaaeaf99b1c491d426e68bb999def3da16...5e1b84b4762473ad1c12d263dd22204013299934 [no output; exit status 0] $ python3 tools/check_conventions.py --base dc9dc7eaaeaf99b1c491d426e68bb999def3da16 --head 5e1b84b4762473ad1c12d263dd22204013299934 --title 'feat(libc): export the wide ctype facet vtable as data' --body /tmp/anyps5-pr-precheck-9761-current/pr-body.md All conventions checks passed. $ python3 tools/pr_stack_check.py 9761 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-9761-current/stack /tmp/anyps5-pr-precheck-9761-current/stack/stack-report.md /tmp/anyps5-pr-precheck-9761-current/stack/stack-report.json ``` </details> ## Negative control | Assertion | Change to code under test | Did the test fail? | |---|---|---| | Every wide-ctype vtable slot starts zero and remains writable | No mutation performed locally | Not run on this head; author-reported test at the earlier head only | ## Findings ### Blocking None found. ### Non-blocking No local C++ test result is available for this exact head; the added vtable and test code match the author-reported tested version. ## Sources - [Vtable definition at reviewed head](https://github.com/boykopovar/AnyPS5/blob/5e1b84b4762473ad1c12d263dd22204013299934/core/libs/prx/libc/src/LocaleSupport.cpp#L613) - [Writable-object test at reviewed head](https://github.com/boykopovar/AnyPS5/blob/5e1b84b4762473ad1c12d263dd22204013299934/core/libs/tests/GuestLocale.cpp#L502-L510) - [Debt note at reviewed head](https://github.com/boykopovar/AnyPS5/blob/5e1b84b4762473ad1c12d263dd22204013299934/docs/dev/debt/libc.md) ## Not verified No local build or CTest run, Windows/macOS runtime, or console measurement was performed. The author-reported `guest_locale` result applies to the earlier head, not a test run I independently reproduced on this SHA.
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!9761
No description provided.