feat(libc): wire the num_put<char> and codecvt<char> facet vtables #21220

Merged
Herolias merged 1 commit from upstream-pr/21220 into main 2026-11-17 01:57:06 +00:00
Herolias commented 2026-11-16 00:30:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Herolias on 2026-11-16T00:30:39Z.


What

libc exports the num_put<char> vtable (_ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE, NID 1kZFcktOm+s) and the codecvt<char,char,_Mbstatet> vtable (_ZTVSt7codecvtIcc9_MbstatetE, NID aK1Ymf-NhAs) as data. On main both are all zeros, so a facet that a title builds on one of them jumps to address 0 on its first virtual call. This change fills both vtables, as c66f61ff52 did for collate<char>.

Titles reach them. The executables of Minecraft Legends (PPSA05510, #268), Deathloop (PPSA01670, #272) and Dreaming Sarah (PPSA02929, #265) import the num_put<char> vtable. Minecraft Legends and PPSA21564 (#271) import the codecvt<char> vtable. Importing a vtable means the title's own code refers to it, for example to construct the facet, and a facet constructed that way makes its virtual calls through the exported slots. (These lists hold only the NIDs that were new at the time; #268, for example, leaves out 259 known-missing ones. So they don't show whether the titles also import the _Getcats.) I know of no run that reaches such a call: Deathloop's bring-up thread (#11484) gets in game, so the scenes tested there do not call through it. The Dreaming Sarah (#3003, #3018) and Astro Bot (PPSA21564, #357) threads mention no null call or facet, and I found no thread for Minecraft Legends. So this PR claims no unblocked title.

  • num_put<char>: slots 2 to 13 hold the functions of g_numPutVtable, the vtable num_put<char>::_Getcat installs. That is the shared facet base (DestroyCollate, DeleteCollate, RetainFacet, ReleaseFacet), then the eight do_put overloads in the console order that GuestLocale::NumPutVtable records: bool, long, unsigned long, long long, unsigned long long, double, long double, const void*.
  • codecvt<char>: slots 2 to 12 hold the functions of g_codecvtVtable, the vtable codecvt<char>::_Getcat installs. That is the same base, then do_always_noconv, do_max_length, do_encoding, do_in, do_out, do_unshift and do_length, in the order GuestLocale::CodecvtVtable records.
  • Unchanged: offset-to-top and typeinfo stay zero, as for collate. No new function is added; facets built on the exported vtables behave exactly like the _Getcat facets and share their recorded gaps.

What still throws, and why:

  • Only what the _Getcat facets already throw. That is the num_put floating-point precision checks and the null facet in the deleting destructor, as on main.
  • PPSA05510 and PPSA01670 also import the num_get<char> vtable (KfcTPbeaOqg), which stays zeroed. None of its eleven do_get virtuals is implemented in this tree yet, so there is nothing to put in it.

Debt: docs/dev/debt/changes/feat-num-put-codecvt-vtables.md changes the num_put<char> vtable and codecvt<char,char,_Mbstatet> vtable entries in libc.md. Both entries are under the 1000-character limit.

Overlap:

  • tools/pr_overlap.py --names for the two vtables and the num_get<char> vtable found no open pull request. A run over 33 num_get, time_get, numpunct and locale names found none either.
  • #11172 fills the codecvt<wchar_t> vtable on the line directly above the codecvt<char> vtable, so the two hunks touch. Neither changes the other's line; the resolution keeps both. tools/pr_overlap.py --branch exits 2 because #9526, #11172 and #18135 already conflict with main. git merge-tree against main and against this branch gives #11172 one more hunk (3 instead of 2, the codecvt<char> line). #9526 has the same hunks as against main, and #18135 conflicts only in files this branch does not change.
  • #17746 changes num_put formatting (PutFormattedFloating and new code after LibcTimePutPattern), not the vtables. Both vtables point at the same functions, so its changes reach facets built on the exported vtable too.
  • #21170 fills the messages<char> vtable two lines above this change and changes CheckMessagesVtableObject just above CheckCodecvtVtableObject in GuestLocale.cpp. Unchanged lines separate the hunks, and git merge-tree merges the two branches cleanly.

Not in this PR:

  • The num_get<char> vtable and its do_get family.
  • The other zeroed facet vtables: numpunct<char>, time_put<char> and time_put<wchar_t> have internal vtables and could be filled the same way, but I found no title that imports them.

Tested

Fedora 44 x86-64, GCC 16.2.1, GNU ld 2.46.1, CMake 4.3.0, Ninja 1.13.2, Release with -DBUILD_TESTING=ON, on main at 44b0108267. I ran no title, homebrew or console, because I have none. Nothing was built or run on Windows or macOS.

  • cmake --build build built the whole tree.
  • The selection from tools/select_tests.py (BUILD.md, "Selective test builds") was 5593 tests, because libc is linked into almost every test. 5592 passed and 1 failed: guest_http, which aborts the same way on main at 2454441420 when rebuilt and run alone (checked for #21170); this branch does not touch libSceHttp. 59 tests skipped themselves.
  • guest_locale (changed):
    • CheckNumPutVtableObject: offset-to-top and typeinfo are zero, and slots 2 to 13 equal the vtable of the facet num_put<char>::_Getcat builds. On a facet built on the exported vtable, destroy, retain and release work, and the deleting destructor frees it. All eight do_put slots format through the exported vtable: bool (which calls long through the same vtable), signed and unsigned long and long long, double with fill and width, long double and the pointer.
    • CheckCodecvtVtableObject: offset-to-top and typeinfo are zero, and slots 2 to 12 equal the vtable of the facet codecvt<char>::_Getcat builds. On a facet built on the exported vtable: retain and release, always_noconv, max_length and encoding of 1, in and out returning noconv with both next pointers at the start, unshift returning ok, length returning the shorter of the range and the count, and the deleting destructor.
  • guest_libc_internal_facet_put, guest_libc_internal_codecvt_char and guest_libc_internal_facet_queries pass.
  • Negative controls: I made four one-line changes to the vtables, rebuilt guest_locale_tests, ran it and restored the code. Each change made it fail:
    • swapping the double and long double slots;
    • leaving the pointer slot empty;
    • putting CodecvtConstantOne in the length slot;
    • dropping one header zero, which shifts the codecvt slots.
  • tools/check_conventions.py --base origin/main reports "All conventions checks passed." With --title and --body set to this title and body, it also passes.
  • tools/debt_fold.py --check passes.
  • tools/pr_overlap.py --branch feat/num-put-codecvt-vtables: see Overlap above.

Sources

Behaviour Source
Slot count and header: 14 slots for num_put<char> and 13 for codecvt<char>, with offset-to-top, typeinfo, two destructors and _Incref/_Decref first st_size 112 and 104 recorded in the libc.md entries for these vtables; kNumPutCharVtableSlots and kCodecvtCharVtableSlots in GuestLocale.hpp
The virtual order and the functions in each slot g_numPutVtable and g_codecvtVtable in core/libs/prx/libc/src/LocaleSupport.cpp, the vtables _Getcat installs, which follow the disassembled console vtables (the libc.md entry "codecvt, numpunct, num_put and time_put _Getcat")
Filling an exported vtable from the _Getcat vtable, with offset-to-top and typeinfo zero c66f61ff52 (collate<char>)
NID 1kZFcktOm+s is _ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE and aK1Ymf-NhAs is _ZTVSt7codecvtIcc9_MbstatetE claimore22/ps5rs data/stubs/by_library/libc.txt lines 166 and 1751
PPSA05510's executable imports 1kZFcktOm+s and aK1Ymf-NhAs; PPSA01670's and PPSA02929's import 1kZFcktOm+s; PPSA21564's imports aK1Ymf-NhAs the NID lists in #268, #272, #265 and #271

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5328920935 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21220). Originally posted by [Herolias](https://github.com/Herolias) on 2026-11-16T00:30:39Z. --- ### What libc exports the `num_put<char>` vtable (`_ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE`, NID `1kZFcktOm+s`) and the `codecvt<char,char,_Mbstatet>` vtable (`_ZTVSt7codecvtIcc9_MbstatetE`, NID `aK1Ymf-NhAs`) as data. On `main` both are all zeros, so a facet that a title builds on one of them jumps to address 0 on its first virtual call. This change fills both vtables, as c66f61ff52 did for `collate<char>`. Titles reach them. The executables of Minecraft Legends (PPSA05510, #268), Deathloop (PPSA01670, #272) and Dreaming Sarah (PPSA02929, #265) import the `num_put<char>` vtable. Minecraft Legends and PPSA21564 (#271) import the `codecvt<char>` vtable. Importing a vtable means the title's own code refers to it, for example to construct the facet, and a facet constructed that way makes its virtual calls through the exported slots. (These lists hold only the NIDs that were new at the time; #268, for example, leaves out 259 known-missing ones. So they don't show whether the titles also import the `_Getcat`s.) I know of no run that reaches such a call: Deathloop's bring-up thread (#11484) gets in game, so the scenes tested there do not call through it. The Dreaming Sarah (#3003, #3018) and Astro Bot (PPSA21564, #357) threads mention no null call or facet, and I found no thread for Minecraft Legends. So this PR claims no unblocked title. - **`num_put<char>`:** slots 2 to 13 hold the functions of `g_numPutVtable`, the vtable `num_put<char>::_Getcat` installs. That is the shared facet base (`DestroyCollate`, `DeleteCollate`, `RetainFacet`, `ReleaseFacet`), then the eight `do_put` overloads in the console order that `GuestLocale::NumPutVtable` records: `bool`, `long`, `unsigned long`, `long long`, `unsigned long long`, `double`, `long double`, `const void*`. - **`codecvt<char>`:** slots 2 to 12 hold the functions of `g_codecvtVtable`, the vtable `codecvt<char>::_Getcat` installs. That is the same base, then `do_always_noconv`, `do_max_length`, `do_encoding`, `do_in`, `do_out`, `do_unshift` and `do_length`, in the order `GuestLocale::CodecvtVtable` records. - **Unchanged:** offset-to-top and typeinfo stay zero, as for `collate`. No new function is added; facets built on the exported vtables behave exactly like the `_Getcat` facets and share their recorded gaps. What still throws, and why: - Only what the `_Getcat` facets already throw. That is the `num_put` floating-point precision checks and the null facet in the deleting destructor, as on `main`. - PPSA05510 and PPSA01670 also import the `num_get<char>` vtable (`KfcTPbeaOqg`), which stays zeroed. None of its eleven `do_get` virtuals is implemented in this tree yet, so there is nothing to put in it. Debt: `docs/dev/debt/changes/feat-num-put-codecvt-vtables.md` changes the `num_put<char> vtable` and `codecvt<char,char,_Mbstatet> vtable` entries in `libc.md`. Both entries are under the 1000-character limit. Overlap: - `tools/pr_overlap.py --names` for the two vtables and the `num_get<char>` vtable found no open pull request. A run over 33 `num_get`, `time_get`, `numpunct` and `locale` names found none either. - #11172 fills the `codecvt<wchar_t>` vtable on the line directly above the `codecvt<char>` vtable, so the two hunks touch. Neither changes the other's line; the resolution keeps both. `tools/pr_overlap.py --branch` exits 2 because #9526, #11172 and #18135 already conflict with `main`. `git merge-tree` against `main` and against this branch gives #11172 one more hunk (3 instead of 2, the `codecvt<char>` line). #9526 has the same hunks as against `main`, and #18135 conflicts only in files this branch does not change. - #17746 changes `num_put` formatting (`PutFormattedFloating` and new code after `LibcTimePutPattern`), not the vtables. Both vtables point at the same functions, so its changes reach facets built on the exported vtable too. - #21170 fills the `messages<char>` vtable two lines above this change and changes `CheckMessagesVtableObject` just above `CheckCodecvtVtableObject` in `GuestLocale.cpp`. Unchanged lines separate the hunks, and `git merge-tree` merges the two branches cleanly. Not in this PR: - The `num_get<char>` vtable and its `do_get` family. - The other zeroed facet vtables: `numpunct<char>`, `time_put<char>` and `time_put<wchar_t>` have internal vtables and could be filled the same way, but I found no title that imports them. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Fedora 44 x86-64, GCC 16.2.1, GNU ld 2.46.1, CMake 4.3.0, Ninja 1.13.2, Release with `-DBUILD_TESTING=ON`, on `main` at 44b0108267. I ran no title, homebrew or console, because I have none. Nothing was built or run on Windows or macOS. - `cmake --build build` built the whole tree. - The selection from `tools/select_tests.py` (BUILD.md, "Selective test builds") was 5593 tests, because libc is linked into almost every test. 5592 passed and 1 failed: `guest_http`, which aborts the same way on `main` at 2454441420 when rebuilt and run alone (checked for #21170); this branch does not touch libSceHttp. 59 tests skipped themselves. - `guest_locale` (changed): - `CheckNumPutVtableObject`: offset-to-top and typeinfo are zero, and slots 2 to 13 equal the vtable of the facet `num_put<char>::_Getcat` builds. On a facet built on the exported vtable, destroy, retain and release work, and the deleting destructor frees it. All eight `do_put` slots format through the exported vtable: `bool` (which calls `long` through the same vtable), signed and unsigned `long` and `long long`, `double` with fill and width, `long double` and the pointer. - `CheckCodecvtVtableObject`: offset-to-top and typeinfo are zero, and slots 2 to 12 equal the vtable of the facet `codecvt<char>::_Getcat` builds. On a facet built on the exported vtable: retain and release, `always_noconv`, `max_length` and `encoding` of 1, `in` and `out` returning `noconv` with both next pointers at the start, `unshift` returning `ok`, `length` returning the shorter of the range and the count, and the deleting destructor. - `guest_libc_internal_facet_put`, `guest_libc_internal_codecvt_char` and `guest_libc_internal_facet_queries` pass. - Negative controls: I made four one-line changes to the vtables, rebuilt `guest_locale_tests`, ran it and restored the code. Each change made it fail: - swapping the `double` and `long double` slots; - leaving the pointer slot empty; - putting `CodecvtConstantOne` in the `length` slot; - dropping one header zero, which shifts the `codecvt` slots. - `tools/check_conventions.py --base origin/main` reports "All conventions checks passed." With `--title` and `--body` set to this title and body, it also passes. - `tools/debt_fold.py --check` passes. - `tools/pr_overlap.py --branch feat/num-put-codecvt-vtables`: see Overlap above. ### Sources | Behaviour | Source | | --- | --- | | Slot count and header: 14 slots for `num_put<char>` and 13 for `codecvt<char>`, with offset-to-top, typeinfo, two destructors and `_Incref`/`_Decref` first | `st_size` 112 and 104 recorded in the `libc.md` entries for these vtables; `kNumPutCharVtableSlots` and `kCodecvtCharVtableSlots` in `GuestLocale.hpp` | | The virtual order and the functions in each slot | `g_numPutVtable` and `g_codecvtVtable` in `core/libs/prx/libc/src/LocaleSupport.cpp`, the vtables `_Getcat` installs, which follow the disassembled console vtables (the `libc.md` entry "codecvt, numpunct, num_put and time_put _Getcat") | | Filling an exported vtable from the `_Getcat` vtable, with offset-to-top and typeinfo zero | c66f61ff52 (`collate<char>`) | | NID `1kZFcktOm+s` is `_ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE` and `aK1Ymf-NhAs` is `_ZTVSt7codecvtIcc9_MbstatetE` | [claimore22/ps5rs `data/stubs/by_library/libc.txt` lines 166 and 1751](https://github.com/claimore22/ps5rs/blob/2304be5131221bae0dac24b9767cabffda33f747/data/stubs/by_library/libc.txt#L166) | | PPSA05510's executable imports `1kZFcktOm+s` and `aK1Ymf-NhAs`; PPSA01670's and PPSA02929's import `1kZFcktOm+s`; PPSA21564's imports `aK1Ymf-NhAs` | the NID lists in #268, #272, #265 and #271 | ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
PrivacyOnion commented 2026-11-16 00:51:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T00:51:45Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 862771e592:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: guest_locale_tests built cleanly.
  • CTest (guest_locale):
    1/1 Test #1324: guest_locale .....................   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libc/src/LocaleSupport.cpp reverted to main and the new tests kept, the suite fails:
    1/1 Test #1324: guest_locale .....................Subprocess aborted***Exception:   0.71 sec
    0% tests passed, 1 tests failed out of 1
    
    Restoring the change makes it pass again.
  • Code reading:
    • Verified in core/libs/prx/libc/src/LocaleSupport.cpp that _ZTVSt7codecvtIcc9_MbstatetE_nid_postfix initializes 13 std::uintptr_t slots (2 leading zeros for offset-to-top/typeinfo followed by the 4 base FacetVtable entries and 7 CodecvtVtable functions matching g_codecvtVtable).
    • Verified in core/libs/prx/libc/src/LocaleSupport.cpp that _ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix initializes 14 std::uintptr_t slots (2 leading zeros followed by the 4 base FacetVtable entries and 8 NumPutVtable do_put functions in the exact ABI order).
    • Checked LP64/LLP64 cross-platform type safety across the vtable initializers (reinterpret_cast<std::uintptr_t>(&fn)) and test assertions (std::int64_t/std::uint64_t limits and std::uintptr_t slot sizes).
    • Confirmed docs/dev/debt/changes/feat-num-put-codecvt-vtables.md properly documents both exported vtables, their sizes, NIDs, and the zeroed offset-to-top/typeinfo slots in compliance with AGENTS.md.
    • Verified CheckCodecvtVtableObject and CheckNumPutVtableObject in core/libs/tests/GuestLocale.cpp validate byte-for-byte parity (std::memcmp) between &slots[2] and the vtable pointers installed by _Getcat, exercise all virtual slots on a heap-allocated GuestLocale::Facet, and clean up all allocations.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5913877988 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21220#pullrequestreview-5913877988). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T00:51:45Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `862771e592`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `guest_locale_tests` built cleanly. - **CTest** (`guest_locale`): ``` 1/1 Test #1324: guest_locale ..................... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libc/src/LocaleSupport.cpp` reverted to `main` and the new tests kept, the suite fails: ``` 1/1 Test #1324: guest_locale .....................Subprocess aborted***Exception: 0.71 sec 0% tests passed, 1 tests failed out of 1 ``` Restoring the change makes it pass again. - **Code reading**: - Verified in core/libs/prx/libc/src/LocaleSupport.cpp that `_ZTVSt7codecvtIcc9_MbstatetE_nid_postfix` initializes 13 `std::uintptr_t` slots (2 leading zeros for offset-to-top/typeinfo followed by the 4 base `FacetVtable` entries and 7 `CodecvtVtable` functions matching `g_codecvtVtable`). - Verified in core/libs/prx/libc/src/LocaleSupport.cpp that `_ZTVSt7num_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE_nid_postfix` initializes 14 `std::uintptr_t` slots (2 leading zeros followed by the 4 base `FacetVtable` entries and 8 `NumPutVtable` `do_put` functions in the exact ABI order). - Checked LP64/LLP64 cross-platform type safety across the vtable initializers (`reinterpret_cast<std::uintptr_t>(&fn)`) and test assertions (`std::int64_t`/`std::uint64_t` limits and `std::uintptr_t` slot sizes). - Confirmed `docs/dev/debt/changes/feat-num-put-codecvt-vtables.md` properly documents both exported vtables, their sizes, NIDs, and the zeroed offset-to-top/typeinfo slots in compliance with AGENTS.md. - Verified `CheckCodecvtVtableObject` and `CheckNumPutVtableObject` in `core/libs/tests/GuestLocale.cpp` validate byte-for-byte parity (`std::memcmp`) between `&slots[2]` and the vtable pointers installed by `_Getcat`, exercise all virtual slots on a heap-allocated `GuestLocale::Facet`, and clean up all allocations. Looks Good To Me
MarcZX10 commented 2026-11-16 02:51:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T02:51:14Z.

Review: APPROVED


Reviewed — looks good

The change wires both exported facet vtables to the same handlers used by their _Getcat facets, and the inspected code and reported checks support merging at head 862771e5926db9e46edc40a32df0d23b35bb3b5d.

What I ran

No commands or tests were run in this review. I read all changed lines and targeted definitions/call sites at the pinned head. The description reports a successful build, selected tests, focused locale tests, negative controls, and convention/debt checks; these are author-reported, not independently run.

Results

Check Result Note
Diff and changed lines passed All three changed files read
Build and tests not run Results are author-reported
Negative controls not run Results are author-reported

Findings

Blocking

None.

Non-blocking

None.

Sources

  • core/libs/prx/libc/src/LocaleSupport.cpp:759–773 wires the codecvt<char> slots to the functions in g_codecvtVtable (:301); :775–:790 wires num_put<char> to g_numPutVtable (:554).
  • core/libs/tests/GuestLocale.cpp:139–:166 and :672–:697 exercise the exported tables and their virtual calls.
  • docs/dev/debt/changes/feat-num-put-codecvt-vtables.md:1–:9 records the corresponding debt entries.

Not verified

No build, tests, negative controls, console or title runs were performed independently. Files read: core/libs/prx/libc/src/LocaleSupport.cpp (changed lines and handler/table context), core/libs/tests/GuestLocale.cpp (changed lines), docs/dev/debt/changes/feat-num-put-codecvt-vtables.md (all lines), and the prepared review description, commits, manifest, diff, and README. review/files.json was not present in the prepared review folder; the review file list was checked with its directory listing.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5914496903 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21220#pullrequestreview-5914496903). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T02:51:14Z. **Review:** APPROVED --- # Reviewed — looks good The change wires both exported facet vtables to the same handlers used by their `_Getcat` facets, and the inspected code and reported checks support merging at head `862771e5926db9e46edc40a32df0d23b35bb3b5d`. ## What I ran No commands or tests were run in this review. I read all changed lines and targeted definitions/call sites at the pinned head. The description reports a successful build, selected tests, focused locale tests, negative controls, and convention/debt checks; these are author-reported, not independently run. ## Results | Check | Result | Note | | --- | --- | --- | | Diff and changed lines | passed | All three changed files read | | Build and tests | not run | Results are author-reported | | Negative controls | not run | Results are author-reported | ## Findings ### Blocking None. ### Non-blocking None. ## Sources - `core/libs/prx/libc/src/LocaleSupport.cpp:759`–`773` wires the `codecvt<char>` slots to the functions in `g_codecvtVtable` (`:301`); `:775`–`:790` wires `num_put<char>` to `g_numPutVtable` (`:554`). - `core/libs/tests/GuestLocale.cpp:139`–`:166` and `:672`–`:697` exercise the exported tables and their virtual calls. - `docs/dev/debt/changes/feat-num-put-codecvt-vtables.md:1`–`:9` records the corresponding debt entries. ## Not verified No build, tests, negative controls, console or title runs were performed independently. Files read: `core/libs/prx/libc/src/LocaleSupport.cpp` (changed lines and handler/table context), `core/libs/tests/GuestLocale.cpp` (changed lines), `docs/dev/debt/changes/feat-num-put-codecvt-vtables.md` (all lines), and the prepared review description, commits, manifest, diff, and README. `review/files.json` was not present in the prepared review folder; the review file list was checked with its directory listing. ## To get this to a good state Nothing is required.
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!21220
No description provided.