feat(libc): wire the numpunct<char> facet vtable and its members #21930

Merged
Herolias merged 3 commits from upstream-pr/21930 into main 2026-11-26 02:12:20 +00:00
Herolias commented 2026-11-16 22:07:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Herolias on 2026-11-16T22:07:28Z.


What

libc exports the numpunct<char> vtable (_ZTVSt8numpunctIcE, NID lJnP-cn0cvQ) as eleven uintptr_t slots, and on main all eleven are zero. The console's libc.prx also exports the facet's six constructors, three destructors, _Init and _Tidy (ps5rs libc.txt), and main's libc exports none of them. This change fills slots 2 to 10 and adds those eleven exports to libc. It is the piece #21537's description listed as missing: "the exported numpunct<char> constructors are absent, so nothing builds a facet on the exported object yet".

How code reaches it: Dinkumware defines all six constructors, the destructor and _Init inside the class (crt.vc12 xlocnum lines 72-228), so a guest that constructs a numpunct<char>, or a class derived from it, writes the exported vtable into the object and calls these members either inline or through the libc imports. On main any call through that vtable faults, and the libc imports of the constructors and destructors are absent. I know of no title that does this. None of the eight title import lists (#265-#272) holds one of the twelve NIDs, but those lists name only the NIDs that were new when they were posted, so that shows nothing either way. This PR claims no unblocked title. Like #21170 (messages<char>) and #21537 (ctype<char>), it completes an exported vtable from sourced code.

  • Vtable: slots 2 to 10 hold the complete and deleting destructors, RetainFacet and ReleaseFacet (the _Incref/_Decref of libc's other facets), and then do_decimal_point, do_thousands_sep, do_grouping, do_falsename and do_truename, which main already implements. That is the Itanium order of _Facet_base's virtuals followed by numpunct's (microsoft/STL xfacet lines 26-36, xlocnum lines 160-222) and the order GuestLocale::NumpunctVtable already records. Offset-to-top and typeinfo stay zero, as in the other filled vtables.
  • _Init (1LvbNeZZJ-o): follows crt.vc12 xlocnum lines 161-188 and microsoft/STL lines 181-202. It nulls the three string pointers, then copies localeconv()'s grouping (or "" when _Isdef is set), "false" and "true" into new blocks. If an allocation fails it runs _Tidy and rethrows. It then takes . and , when _Isdef is set, and otherwise the first byte of localeconv()'s decimal point and thousands separator. _Locinfo::_Getlconv, _Getfalse and _Gettrue are inline in both sources and return localeconv(), "false" and "true" (crt.vc12 xlocinfo lines 125-128 and 165-173), so _Init never reads the _Locinfo object itself. main's localeconv() is a fixed C-locale table read from Astro's Playroom's libc.prx (libc.md, localeconv), which holds the same "false" and "true" in its _False/_True fields.
  • Allocation: the blocks come from operator new[] and _Tidy (fFnht9SPed8) releases them with operator delete[], as V6.00's _Maklocstr and _Tidy do (crt.vc12 xlocale lines 724-738, xlocnum lines 216-221). microsoft/STL uses calloc and free instead (xlocale lines 563-579, xlocnum lines 225-229). The console's libc is Dinkumware's, so I followed the Dinkumware release where the two differ; in this library free and operator delete[] both release through the application heap (FileAndHeap.cpp line 1001, StdioExtras.cpp line 143).
  • Constructors (TEtyeXjcZ0w/1eVdDzPtzD4 (size_t), CDm+TUClE7E/Cb1hI+w9nyU (const _Locinfo&, size_t, bool), WK24j1F3rCU/yIn4l8OO1zA (const char*, size_t, bool)): each stores the vtable and the reference count, truncated to the facet's 32-bit counter (locale::facet(size_t), crt.vc12 xlocale lines 160-163), then follows crt.vc12 xlocnum lines 107-145:
    • (size_t) builds a default _Locinfo, which is "C" (xlocinfo line 71), runs _Init with _Isdef false and replaces a zero thousands separator with ,;
    • (const _Locinfo&, size_t, bool) runs _Init with the given _Isdef;
    • (const char*, size_t, bool) builds _Locinfo from the name and runs _Init. _BEGIN_LOCINFO is that _Locinfo in a scope (crt.vc12 yvals.h lines 762-767). main's _Locinfo accepts only "C" and throws std::invalid_argument otherwise, so these constructors do too, before allocating anything.
      The C1 and C2 forms are the same function, as the Itanium ABI allows for a class without virtual bases. The mangled names fix the parameter types (m is unsigned long, b is bool; compute_nid of each name gives its NID).
  • Destructors (qEob3o53s2M D1, xFva4yxsVW8 D2, Lf6h5krl2fA D0): ~numpunct runs _Tidy (crt.vc12 xlocnum lines 134-137), and the deleting destructor then frees the facet with operator delete.
  • How the eleven are exported: seven use libc's usual _nid_postfix names. libSceLibcInternal already defines _ZNSt8numpunctIcEC1EPKcmb, _ZNSt8numpunctIcEC2ERKSt8_Locinfomb and _ZNSt8numpunctIcED0Ev with that suffix (InventoryExports6.cpp), which check_conventions rejects as duplicate-export, and exports D2's NID as sceLibcInternalUnknown6_119_xFva4yxsVW8, which it rejects as unknown-nid. Those four are _nid_no_patch bodies exported with APS5_EXPORT, as libc already does for __cxa_finalize (b8a1cbe42b). libSceLibcInternal is unchanged: libc imports never fall back to it (WindowsEntryStubBuilder.cpp lines 180-215), and its own numpunct<char> members stay as they are on main.
  • _Getcat is unchanged. It still builds its C-locale facet on libc's internal table with static strings (the libc.md _Getcat entry), so facets from use_facet through libc's _Getcat never reach the new destructors.

What still throws, and why:

  • A null facet passed to any of the eleven throws std::invalid_argument, where the console would fault. This is the host-safety policy of the ctype<char> destructors.
  • The named constructors throw std::invalid_argument for any name other than "C", because main's _Locinfo does.
  • No path calls NotImplemented_nid_no_patch.

Debt: docs/dev/debt/changes/feat-numpunct-char-facet.md changes the libc.md "numpunct vtable" entry, which said the slots are zeroed, and adds two Functional entries for _Init/_Tidy and for the constructors and destructors. Each entry is under 1000 characters (914, 897 and 922).

Overlap:

  • tools/pr_overlap.py --names for the 67 numpunct<char>, numpunct<wchar_t> and codecvt<wchar_t, char> names found no open PR that implements a numpunct<char> member. #17300 renames libSceLibcInternal's numpunct<char> stubs, #13449 adds _ZTSSt8numpunctIcE, and #19434 adds a libSceLibcInternal alias of _Getcat. #11172 already wires the codecvt<wchar_t, char> vtable, so I left that one out.
  • gh search prs for "numpunct" found 19 open PRs. Their diffs touch numpunct<char>::id, the std::__sce_v2 facets or other facets. The one that touches _ZTVSt8numpunctIcE is #17610, which moves the zeroed line together with its whole block.
  • tools/pr_overlap.py --branch feat/numpunct-char-facet lists #17300 under "Same exports", because its renamed libSceLibcInternal stubs carry seven of the NIDs that libc now exports. They are different libraries and different symbol names, as with __cxa_finalize.
  • It exits 2 because 21 PRs that share a file already conflict with main. I fetched their heads and ran git merge-tree of each against main and against this branch, and compared the conflict hunks in every file this branch changes. All 21, and #17300, #17610, #21894, #19434, #13449 and #21220, have the same hunks against both: #7447, #7715, #8150, #8965, #9466, #12717, #12849, #16791, #17345, #17354, #17557, #17558 and #19181 (CMakeLists.txt), #9526 and #11172 (LocaleSupport.cpp, GuestLocale.cpp), #12184 (Api.hpp), #12682, #12688, #12700 and #12965 (CMakeLists.txt, Api.hpp) and #18135 (Api.hpp, GuestLocale.hpp, LocaleSupport.cpp).

Not in this PR:

  • numpunct<char>'s typeinfo _ZTISt8numpunctIcE (ddLNBT9ks2I). main exports no facet typeinfo, locale::facet's included, and #13449 adds the _ZTS name. A guest class derived from numpunct<char> with RTTI needs it.
  • The numpunct<wchar_t> vtable (Gtsl8PUl40U), which main's libc does not export at all. Both sources take the wide decimal point and separator from lconv's _W_decimal_point and _W_thousands_sep (crt.vc12 xlocnum lines 154-159, microsoft/STL xlocnum lines 176-179), and the 0x90-byte lconv of the console's libc has no such fields (SonyLconv in core/libs/SceTypes.hpp), so neither source says where the console's _Init gets them.
  • libSceLibcInternal's numpunct<char> members.

Tested

Fedora Linux 44, GCC 16.2.1, GNU ld 2.46.1, CMake 4.3.0, Ninja 1.13.2, Release build with -DBUILD_TESTING=ON, on 913524c1ee (based on main at ec9f142628). No title, no console and no Windows host.

  • Full build: passes.
  • tools/select_tests.py selects 5776 of 5883 tests for this change. 5775 pass and 62 of them skip themselves on this NVIDIA machine. The one failure is agc_driver_image_table_packed_guards ("deferred write-back failed: image table ... invalid format"). It fails the same way with main's copies of this branch's five changed files that exist on main checked out and only that test rebuilt, so it comes from main.
  • guest_numpunct_facet (new) runs _Init and _Tidy through both entry points with _Isdef set and clear, fails each of the three allocations in turn, and runs every constructor and destructor export, the vtable slots and the null-facet checks against a recording application heap. guest_locale now checks the filled vtable slots on a facet built by numpunct(size_t) instead of checking that they are zero. Both pass.
  • patched_self_imports passes, and nm -D on the patched libc.prx lists all twelve NIDs (the vtable as data, the eleven members as text).
  • Negative controls: 24 single mutations of LocaleSupport.cpp, each built and run with guest_locale and guest_numpunct_facet. Among them are a zeroed vtable, swapped vtable slots, a missing reference count, _Tidy leaking or reordering, _Init sharing the lconv grouping, keeping stale pointers, leaking or swallowing a failure, and constructors ignoring _Isdef or the name. 23 fail at least one test. The survivor makes numpunct(size_t) call _Init with _Isdef set. That is equivalent here, because main's localeconv() is a fixed C-locale table (empty grouping and separator, .), so _Init with _Isdef clear followed by the , fallback builds the same facet. The tests pass again with the code restored.
  • The recording heap sees free, operator delete and operator delete[] as the same release, so the tests check which blocks are released and in which order, not which of the three functions releases them.
  • x86_64-w64-mingw32-g++ 16.2.1 -fsyntax-only with -D_UCRT -D__MSVCRT_VERSION__=0xE00 passes for LocaleSupport.cpp, GuestLocale.cpp and GuestNumpunctFacet.cpp. Nothing ran on Windows.
  • python3 tools/check_conventions.py --base origin/main passes, and python3 tools/debt_fold.py --check passes.

Sources

Behaviour Source
Slot count and header: 11 slots, with offset-to-top, typeinfo, two destructors and _Incref/_Decref first st_size 88 measured on PPSA26344's libc.prx, recorded in the libc.md "numpunct vtable" entry
Order of the destructor, _Incref, _Decref and the five do_* virtuals microsoft/STL 219514876e stl/inc/xfacet lines 26-36, stl/inc/xlocnum lines 160-222; ganboing/crt.vc12 f1d47126bf src/xlocnum lines 134-213
_Init: null the strings, copy grouping (or ""), "false", "true"; _Tidy and rethrow on failure; ./, with _Isdef, else the first byte of the decimal point and separator crt.vc12 src/xlocnum lines 147-188; microsoft/STL stl/inc/xlocnum lines 170-202
_Getlconv, _Getfalse, _Gettrue return localeconv(), "false", "true"; the default _Locinfo is "C" crt.vc12 src/xlocinfo lines 71, 125-128, 165-173; microsoft/STL stl/inc/xlocinfo lines 68, 124-126, 158-164
Strings in operator new[] blocks released with operator delete[] (microsoft/STL: calloc/free) crt.vc12 src/xlocale lines 724-738, src/xlocnum lines 216-221; microsoft/STL stl/inc/xlocale lines 563-579, stl/inc/xlocnum lines 225-229
Constructors: reference count, (size_t) with a "C" _Locinfo and the , fallback, (const _Locinfo&), (const char*) crt.vc12 src/xlocnum lines 107-145, src/xlocale lines 160-163, src/yvals.h lines 762-767; microsoft/STL stl/inc/xlocnum lines 137-168, stl/inc/xlocale lines 152-154
Destructors run _Tidy; the deleting one then frees the facet crt.vc12 src/xlocnum lines 134-137; Itanium C++ ABI 5.1.4, "deleting destructor"
Facet layout (grouping 0x10, decimalPoint 0x18, thousandsSep 0x19, falsename 0x20, truename 0x28) and 32-bit reference count GuestLocale::NumpunctFacet and GuestLocale::Facet in core/libs/prx/libc/include/GuestLocale.hpp on main, recorded in the libc.md _Getcat entry (console libc.prx)
libc exports the vtable and the eleven members claimore22/ps5rs 2304be5131 data/stubs/by_library/libc.txt lines 144, 161, 672, 687, 1074, 1436, 1567, 1983, 2271, 2490, 2801, 2842
Parameter types the mangled names; tools/check_conventions.py compute_nid gives each listed NID from its name
A libc.prx import resolves only in libc among AnyPS5's libraries core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp lines 180-215
APS5_EXPORT for a NID whose name another library declares core/libs/prx/libc/Export.cpp line 20 (__cxa_finalize, b8a1cbe42b)

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:5346056017 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21930). Originally posted by [Herolias](https://github.com/Herolias) on 2026-11-16T22:07:28Z. --- ### What libc exports the `numpunct<char>` vtable (`_ZTVSt8numpunctIcE`, NID `lJnP-cn0cvQ`) as eleven `uintptr_t` slots, and on `main` all eleven are zero. The console's `libc.prx` also exports the facet's six constructors, three destructors, `_Init` and `_Tidy` (ps5rs `libc.txt`), and `main`'s libc exports none of them. This change fills slots 2 to 10 and adds those eleven exports to libc. It is the piece #21537's description listed as missing: "the exported `numpunct<char>` constructors are absent, so nothing builds a facet on the exported object yet". How code reaches it: Dinkumware defines all six constructors, the destructor and `_Init` inside the class ([crt.vc12 `xlocnum` lines 72-228](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocnum#L72-L228)), so a guest that constructs a `numpunct<char>`, or a class derived from it, writes the exported vtable into the object and calls these members either inline or through the libc imports. On `main` any call through that vtable faults, and the libc imports of the constructors and destructors are absent. I know of no title that does this. None of the eight title import lists (#265-#272) holds one of the twelve NIDs, but those lists name only the NIDs that were new when they were posted, so that shows nothing either way. This PR claims no unblocked title. Like #21170 (`messages<char>`) and #21537 (`ctype<char>`), it completes an exported vtable from sourced code. - **Vtable:** slots 2 to 10 hold the complete and deleting destructors, `RetainFacet` and `ReleaseFacet` (the `_Incref`/`_Decref` of libc's other facets), and then `do_decimal_point`, `do_thousands_sep`, `do_grouping`, `do_falsename` and `do_truename`, which `main` already implements. That is the Itanium order of `_Facet_base`'s virtuals followed by `numpunct`'s ([microsoft/STL `xfacet` lines 26-36](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xfacet#L26-L36), [`xlocnum` lines 160-222](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocnum#L160-L222)) and the order `GuestLocale::NumpunctVtable` already records. Offset-to-top and typeinfo stay zero, as in the other filled vtables. - **`_Init` (`1LvbNeZZJ-o`):** follows [crt.vc12 `xlocnum` lines 161-188](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocnum#L161-L188) and [microsoft/STL lines 181-202](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocnum#L181-L202). It nulls the three string pointers, then copies `localeconv()`'s grouping (or `""` when `_Isdef` is set), `"false"` and `"true"` into new blocks. If an allocation fails it runs `_Tidy` and rethrows. It then takes `.` and `,` when `_Isdef` is set, and otherwise the first byte of `localeconv()`'s decimal point and thousands separator. `_Locinfo::_Getlconv`, `_Getfalse` and `_Gettrue` are inline in both sources and return `localeconv()`, `"false"` and `"true"` ([crt.vc12 `xlocinfo` lines 125-128 and 165-173](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocinfo#L125-L173)), so `_Init` never reads the `_Locinfo` object itself. `main`'s `localeconv()` is a fixed C-locale table read from Astro's Playroom's `libc.prx` (`libc.md`, localeconv), which holds the same `"false"` and `"true"` in its `_False`/`_True` fields. - **Allocation:** the blocks come from `operator new[]` and `_Tidy` (`fFnht9SPed8`) releases them with `operator delete[]`, as V6.00's `_Maklocstr` and `_Tidy` do ([crt.vc12 `xlocale` lines 724-738](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocale#L724-L738), `xlocnum` lines 216-221). microsoft/STL uses `calloc` and `free` instead (`xlocale` lines 563-579, `xlocnum` lines 225-229). The console's libc is Dinkumware's, so I followed the Dinkumware release where the two differ; in this library `free` and `operator delete[]` both release through the application heap (`FileAndHeap.cpp` line 1001, `StdioExtras.cpp` line 143). - **Constructors (`TEtyeXjcZ0w`/`1eVdDzPtzD4` `(size_t)`, `CDm+TUClE7E`/`Cb1hI+w9nyU` `(const _Locinfo&, size_t, bool)`, `WK24j1F3rCU`/`yIn4l8OO1zA` `(const char*, size_t, bool)`):** each stores the vtable and the reference count, truncated to the facet's 32-bit counter (`locale::facet(size_t)`, crt.vc12 `xlocale` lines 160-163), then follows [crt.vc12 `xlocnum` lines 107-145](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocnum#L107-L145): - `(size_t)` builds a default `_Locinfo`, which is `"C"` (`xlocinfo` line 71), runs `_Init` with `_Isdef` false and replaces a zero thousands separator with `,`; - `(const _Locinfo&, size_t, bool)` runs `_Init` with the given `_Isdef`; - `(const char*, size_t, bool)` builds `_Locinfo` from the name and runs `_Init`. `_BEGIN_LOCINFO` is that `_Locinfo` in a scope ([crt.vc12 `yvals.h` lines 762-767](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/yvals.h#L762-L767)). `main`'s `_Locinfo` accepts only `"C"` and throws `std::invalid_argument` otherwise, so these constructors do too, before allocating anything. The C1 and C2 forms are the same function, as the Itanium ABI allows for a class without virtual bases. The mangled names fix the parameter types (`m` is `unsigned long`, `b` is `bool`; `compute_nid` of each name gives its NID). - **Destructors (`qEob3o53s2M` D1, `xFva4yxsVW8` D2, `Lf6h5krl2fA` D0):** `~numpunct` runs `_Tidy` ([crt.vc12 `xlocnum` lines 134-137](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocnum#L134-L137)), and the deleting destructor then frees the facet with `operator delete`. - **How the eleven are exported:** seven use libc's usual `_nid_postfix` names. libSceLibcInternal already defines `_ZNSt8numpunctIcEC1EPKcmb`, `_ZNSt8numpunctIcEC2ERKSt8_Locinfomb` and `_ZNSt8numpunctIcED0Ev` with that suffix (`InventoryExports6.cpp`), which `check_conventions` rejects as `duplicate-export`, and exports D2's NID as `sceLibcInternalUnknown6_119_xFva4yxsVW8`, which it rejects as `unknown-nid`. Those four are `_nid_no_patch` bodies exported with `APS5_EXPORT`, as libc already does for `__cxa_finalize` (b8a1cbe42b). libSceLibcInternal is unchanged: libc imports never fall back to it (`WindowsEntryStubBuilder.cpp` lines 180-215), and its own `numpunct<char>` members stay as they are on `main`. - **`_Getcat` is unchanged.** It still builds its C-locale facet on libc's internal table with static strings (the `libc.md` `_Getcat` entry), so facets from `use_facet` through libc's `_Getcat` never reach the new destructors. What still throws, and why: - A null facet passed to any of the eleven throws `std::invalid_argument`, where the console would fault. This is the host-safety policy of the `ctype<char>` destructors. - The named constructors throw `std::invalid_argument` for any name other than `"C"`, because `main`'s `_Locinfo` does. - No path calls `NotImplemented_nid_no_patch`. Debt: `docs/dev/debt/changes/feat-numpunct-char-facet.md` changes the `libc.md` "numpunct<char> vtable" entry, which said the slots are zeroed, and adds two Functional entries for `_Init`/`_Tidy` and for the constructors and destructors. Each entry is under 1000 characters (914, 897 and 922). Overlap: - `tools/pr_overlap.py --names` for the 67 `numpunct<char>`, `numpunct<wchar_t>` and `codecvt<wchar_t, char>` names found no open PR that implements a `numpunct<char>` member. #17300 renames libSceLibcInternal's `numpunct<char>` stubs, #13449 adds `_ZTSSt8numpunctIcE`, and #19434 adds a libSceLibcInternal alias of `_Getcat`. #11172 already wires the `codecvt<wchar_t, char>` vtable, so I left that one out. - `gh search prs` for "numpunct" found 19 open PRs. Their diffs touch `numpunct<char>::id`, the `std::__sce_v2` facets or other facets. The one that touches `_ZTVSt8numpunctIcE` is #17610, which moves the zeroed line together with its whole block. - `tools/pr_overlap.py --branch feat/numpunct-char-facet` lists #17300 under "Same exports", because its renamed libSceLibcInternal stubs carry seven of the NIDs that libc now exports. They are different libraries and different symbol names, as with `__cxa_finalize`. - It exits 2 because 21 PRs that share a file already conflict with `main`. I fetched their heads and ran `git merge-tree` of each against `main` and against this branch, and compared the conflict hunks in every file this branch changes. All 21, and #17300, #17610, #21894, #19434, #13449 and #21220, have the same hunks against both: #7447, #7715, #8150, #8965, #9466, #12717, #12849, #16791, #17345, #17354, #17557, #17558 and #19181 (`CMakeLists.txt`), #9526 and #11172 (`LocaleSupport.cpp`, `GuestLocale.cpp`), #12184 (`Api.hpp`), #12682, #12688, #12700 and #12965 (`CMakeLists.txt`, `Api.hpp`) and #18135 (`Api.hpp`, `GuestLocale.hpp`, `LocaleSupport.cpp`). Not in this PR: - `numpunct<char>`'s typeinfo `_ZTISt8numpunctIcE` (`ddLNBT9ks2I`). `main` exports no facet typeinfo, `locale::facet`'s included, and #13449 adds the `_ZTS` name. A guest class derived from `numpunct<char>` with RTTI needs it. - The `numpunct<wchar_t>` vtable (`Gtsl8PUl40U`), which `main`'s libc does not export at all. Both sources take the wide decimal point and separator from `lconv`'s `_W_decimal_point` and `_W_thousands_sep` (crt.vc12 `xlocnum` lines 154-159, microsoft/STL `xlocnum` lines 176-179), and the 0x90-byte `lconv` of the console's libc has no such fields (`SonyLconv` in `core/libs/SceTypes.hpp`), so neither source says where the console's `_Init` gets them. - libSceLibcInternal's `numpunct<char>` members. ### 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 Linux 44, GCC 16.2.1, GNU ld 2.46.1, CMake 4.3.0, Ninja 1.13.2, Release build with `-DBUILD_TESTING=ON`, on `913524c1ee` (based on `main` at `ec9f142628`). No title, no console and no Windows host. - Full build: passes. - `tools/select_tests.py` selects 5776 of 5883 tests for this change. 5775 pass and 62 of them skip themselves on this NVIDIA machine. The one failure is `agc_driver_image_table_packed_guards` ("deferred write-back failed: image table ... invalid format"). It fails the same way with `main`'s copies of this branch's five changed files that exist on `main` checked out and only that test rebuilt, so it comes from `main`. - `guest_numpunct_facet` (new) runs `_Init` and `_Tidy` through both entry points with `_Isdef` set and clear, fails each of the three allocations in turn, and runs every constructor and destructor export, the vtable slots and the null-facet checks against a recording application heap. `guest_locale` now checks the filled vtable slots on a facet built by `numpunct(size_t)` instead of checking that they are zero. Both pass. - `patched_self_imports` passes, and `nm -D` on the patched `libc.prx` lists all twelve NIDs (the vtable as data, the eleven members as text). - Negative controls: 24 single mutations of `LocaleSupport.cpp`, each built and run with `guest_locale` and `guest_numpunct_facet`. Among them are a zeroed vtable, swapped vtable slots, a missing reference count, `_Tidy` leaking or reordering, `_Init` sharing the `lconv` grouping, keeping stale pointers, leaking or swallowing a failure, and constructors ignoring `_Isdef` or the name. 23 fail at least one test. The survivor makes `numpunct(size_t)` call `_Init` with `_Isdef` set. That is equivalent here, because `main`'s `localeconv()` is a fixed C-locale table (empty grouping and separator, `.`), so `_Init` with `_Isdef` clear followed by the `,` fallback builds the same facet. The tests pass again with the code restored. - The recording heap sees `free`, `operator delete` and `operator delete[]` as the same release, so the tests check which blocks are released and in which order, not which of the three functions releases them. - `x86_64-w64-mingw32-g++` 16.2.1 `-fsyntax-only` with `-D_UCRT -D__MSVCRT_VERSION__=0xE00` passes for `LocaleSupport.cpp`, `GuestLocale.cpp` and `GuestNumpunctFacet.cpp`. Nothing ran on Windows. - `python3 tools/check_conventions.py --base origin/main` passes, and `python3 tools/debt_fold.py --check` passes. ### Sources | Behaviour | Source | | --- | --- | | Slot count and header: 11 slots, with offset-to-top, typeinfo, two destructors and `_Incref`/`_Decref` first | `st_size` 88 measured on PPSA26344's `libc.prx`, recorded in the `libc.md` "numpunct<char> vtable" entry | | Order of the destructor, `_Incref`, `_Decref` and the five `do_*` virtuals | [microsoft/STL 219514876e `stl/inc/xfacet` lines 26-36](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xfacet#L26-L36), [`stl/inc/xlocnum` lines 160-222](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocnum#L160-L222); [ganboing/crt.vc12 f1d47126bf `src/xlocnum` lines 134-213](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocnum#L134-L213) | | `_Init`: null the strings, copy grouping (or `""`), `"false"`, `"true"`; `_Tidy` and rethrow on failure; `.`/`,` with `_Isdef`, else the first byte of the decimal point and separator | [crt.vc12 `src/xlocnum` lines 147-188](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocnum#L147-L188); [microsoft/STL `stl/inc/xlocnum` lines 170-202](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocnum#L170-L202) | | `_Getlconv`, `_Getfalse`, `_Gettrue` return `localeconv()`, `"false"`, `"true"`; the default `_Locinfo` is `"C"` | [crt.vc12 `src/xlocinfo` lines 71, 125-128, 165-173](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocinfo#L71-L173); [microsoft/STL `stl/inc/xlocinfo` lines 68, 124-126, 158-164](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocinfo#L68-L164) | | Strings in `operator new[]` blocks released with `operator delete[]` (microsoft/STL: `calloc`/`free`) | [crt.vc12 `src/xlocale` lines 724-738](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocale#L724-L738), `src/xlocnum` lines 216-221; [microsoft/STL `stl/inc/xlocale` lines 563-579](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocale#L563-L579), `stl/inc/xlocnum` lines 225-229 | | Constructors: reference count, `(size_t)` with a `"C"` `_Locinfo` and the `,` fallback, `(const _Locinfo&)`, `(const char*)` | [crt.vc12 `src/xlocnum` lines 107-145](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocnum#L107-L145), `src/xlocale` lines 160-163, `src/yvals.h` lines 762-767; [microsoft/STL `stl/inc/xlocnum` lines 137-168](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocnum#L137-L168), `stl/inc/xlocale` lines 152-154 | | Destructors run `_Tidy`; the deleting one then frees the facet | [crt.vc12 `src/xlocnum` lines 134-137](https://github.com/ganboing/crt.vc12/blob/f1d47126bf13d1c9dccaa6c53b72217fd0474968/src/xlocnum#L134-L137); [Itanium C++ ABI 5.1.4, "deleting destructor"](https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangling-special-ctor-dtor) | | Facet layout (`grouping` 0x10, `decimalPoint` 0x18, `thousandsSep` 0x19, `falsename` 0x20, `truename` 0x28) and 32-bit reference count | `GuestLocale::NumpunctFacet` and `GuestLocale::Facet` in `core/libs/prx/libc/include/GuestLocale.hpp` on `main`, recorded in the `libc.md` `_Getcat` entry (console `libc.prx`) | | libc exports the vtable and the eleven members | [claimore22/ps5rs 2304be5131 `data/stubs/by_library/libc.txt`](https://github.com/claimore22/ps5rs/blob/2304be5131221bae0dac24b9767cabffda33f747/data/stubs/by_library/libc.txt) lines 144, 161, 672, 687, 1074, 1436, 1567, 1983, 2271, 2490, 2801, 2842 | | Parameter types | the mangled names; `tools/check_conventions.py` `compute_nid` gives each listed NID from its name | | A `libc.prx` import resolves only in libc among AnyPS5's libraries | `core/relinker/elfpatcher/src/windows/WindowsEntryStubBuilder.cpp` lines 180-215 | | `APS5_EXPORT` for a NID whose name another library declares | `core/libs/prx/libc/Export.cpp` line 20 (`__cxa_finalize`, b8a1cbe42b) | ### 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 22:30:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T22:30:55Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 913524c1ee:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_locale_tests, guest_numpunct_facet_tests built cleanly.
  • CTest (guest_locale, guest_numpunct_facet):
    1/2 Test #1340: guest_locale .....................   Passed    0.02 sec
    2/2 Test #1341: guest_numpunct_facet .............   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 2
    
  • Negative control: with core/libs/prx/libc/include/Api.hpp, core/libs/prx/libc/include/GuestLocale.hpp, core/libs/prx/libc/src/LocaleSupport.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified _ZTVSt8numpunctIcE_nid_postfix vtable layout (11 slots, slots 0-1 zero, slots 2-10 matching Dinkumware / libc facet ABI order) and NumpunctVtable offsets
    • Audited NumpunctInit_nid_no_patch, NumpunctTidy_nid_no_patch, and MakeNumpunctString memory handling and exception safety during heap allocation
    • Checked null pointer validation across all new exported constructors, destructors, Init, and Tidy methods (_ZNSt8numpunctIcE* and Numpunct*), verifying APS5_INVALID_ARG_EX guards
    • Verified technical debt fragment docs/dev/debt/changes/feat-numpunct-char-facet.md format and documentation of C-locale fallback and invalid_argument behavior
    • Audited test coverage in GuestNumpunctFacet.cpp and GuestLocale.cpp covering C1/C2 constructors, D1/destroy/deleteObject destructors, reference counting, allocation failure recovery, and null arguments

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5928994877 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21930#pullrequestreview-5928994877). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T22:30:55Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `913524c1ee`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_locale_tests`, `guest_numpunct_facet_tests` built cleanly. - **CTest** (`guest_locale`, `guest_numpunct_facet`): ``` 1/2 Test #1340: guest_locale ..................... Passed 0.02 sec 2/2 Test #1341: guest_numpunct_facet ............. Passed 0.02 sec 100% tests passed, 0 tests failed out of 2 ``` - **Negative control**: with `core/libs/prx/libc/include/Api.hpp`, `core/libs/prx/libc/include/GuestLocale.hpp`, `core/libs/prx/libc/src/LocaleSupport.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified _ZTVSt8numpunctIcE_nid_postfix vtable layout (11 slots, slots 0-1 zero, slots 2-10 matching Dinkumware / libc facet ABI order) and NumpunctVtable offsets - Audited NumpunctInit_nid_no_patch, NumpunctTidy_nid_no_patch, and MakeNumpunctString memory handling and exception safety during heap allocation - Checked null pointer validation across all new exported constructors, destructors, Init, and Tidy methods (_ZNSt8numpunctIcE* and Numpunct*), verifying APS5_INVALID_ARG_EX guards - Verified technical debt fragment docs/dev/debt/changes/feat-numpunct-char-facet.md format and documentation of C-locale fallback and invalid_argument behavior - Audited test coverage in GuestNumpunctFacet.cpp and GuestLocale.cpp covering C1/C2 constructors, D1/destroy/deleteObject destructors, reference counting, allocation failure recovery, and null arguments Looks Good To Me
MarcZX10 commented 2026-11-16 23:21:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T23:21:21Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: make allocation failure in MakeNumpunctString throw std::bad_alloc before copying.

What I ran

Reviewed head 913524c1eec677eae00513422614a0d8cee8ba5a using the prepared diff and pinned reader; no build or tests were run. The author reports a successful build and tests in description.md.

Results

Check Result Note
Changed source review failed Allocation failure can reach memcpy as a null pointer.
Build and tests not run Author-reported results only.

Findings

Blocking

  • core/libs/prx/libc/src/LocaleSupport.cpp:1559 — MakeNumpunctString calls the throwing operator new[] wrapper, but that wrapper delegates to Allocate, which returns the application heap result directly. If the heap API returns null without throwing, the next memcpy dereferences null. _Init's catch-and-cleanup path therefore does not handle this failure, despite the stated bad_alloc behavior and the new test expecting it. Check the returned pointer and throw std::bad_alloc before copying, or ensure the allocation wrapper translates null to an exception.

Non-blocking

None.

Sources

  • The helper and _Init cleanup path are in core/libs/prx/libc/src/LocaleSupport.cpp:1557 and core/libs/prx/libc/src/LocaleSupport.cpp:1584.
  • operator new[] delegates to Allocate in core/libs/prx/libc/src/StdioExtras.cpp:110; Allocate directly returns the heap allocation result in core/libs/prx/libc/src/StdioExtras.cpp:25.
  • The new failure test configures a null-returning allocator and expects std::bad_alloc in core/libs/tests/GuestNumpunctFacet.cpp:34 and core/libs/tests/GuestNumpunctFacet.cpp:385.

Not verified

No commands, build, or tests were run. I read all seven changed files listed in the manifest; no files were excluded by the manifest.

To get this to a good state

Make MakeNumpunctString convert a null allocation result to std::bad_alloc, then rerun guest_numpunct_facet and the reported build and convention checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5929672561 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21930#pullrequestreview-5929672561). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T23:21:21Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: make allocation failure in `MakeNumpunctString` throw `std::bad_alloc` before copying. ## What I ran Reviewed head `913524c1eec677eae00513422614a0d8cee8ba5a` using the prepared diff and pinned reader; no build or tests were run. The author reports a successful build and tests in `description.md`. ## Results | Check | Result | Note | |---|---|---| | Changed source review | failed | Allocation failure can reach `memcpy` as a null pointer. | | Build and tests | not run | Author-reported results only. | ## Findings ### Blocking - `core/libs/prx/libc/src/LocaleSupport.cpp:1559` — `MakeNumpunctString` calls the throwing `operator new[]` wrapper, but that wrapper delegates to `Allocate`, which returns the application heap result directly. If the heap API returns null without throwing, the next `memcpy` dereferences null. `_Init`'s catch-and-cleanup path therefore does not handle this failure, despite the stated `bad_alloc` behavior and the new test expecting it. Check the returned pointer and throw `std::bad_alloc` before copying, or ensure the allocation wrapper translates null to an exception. ### Non-blocking None. ## Sources - The helper and `_Init` cleanup path are in `core/libs/prx/libc/src/LocaleSupport.cpp:1557` and `core/libs/prx/libc/src/LocaleSupport.cpp:1584`. - `operator new[]` delegates to `Allocate` in `core/libs/prx/libc/src/StdioExtras.cpp:110`; `Allocate` directly returns the heap allocation result in `core/libs/prx/libc/src/StdioExtras.cpp:25`. - The new failure test configures a null-returning allocator and expects `std::bad_alloc` in `core/libs/tests/GuestNumpunctFacet.cpp:34` and `core/libs/tests/GuestNumpunctFacet.cpp:385`. ## Not verified No commands, build, or tests were run. I read all seven changed files listed in the manifest; no files were excluded by the manifest. ## To get this to a good state Make `MakeNumpunctString` convert a null allocation result to `std::bad_alloc`, then rerun `guest_numpunct_facet` and the reported build and convention checks on the updated head.
PrivacyOnion commented 2026-11-17 00:17:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T00:17:59Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 2ba615ab6c:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_locale_tests, guest_numpunct_facet_tests built cleanly.
  • CTest (guest_locale, guest_numpunct_facet):
    1/2 Test #1344: guest_numpunct_facet .............   Passed    0.00 sec
    2/2 Test #1343: guest_locale .....................   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 2
    
  • Negative control: with core/libs/prx/libc/include/Api.hpp, core/libs/prx/libc/include/GuestLocale.hpp, core/libs/prx/libc/src/LocaleSupport.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified _ZTVSt8numpunctIcE_nid_postfix vtable layout in core/libs/prx/libc/src/LocaleSupport.cpp:816-828: slots 0-1 are zero (offset-to-top, RTTI), slots 2-10 correctly map destroy, deleteObject, retain, release, and five do_* methods matching Dinkumware / libc ABI order.
    • Audited dynamic memory handling in MakeNumpunctString and NumpunctInit_nid_no_patch (LocaleSupport.cpp:1556-1598): verified exception safety, std::bad_alloc check on null allocation, and proper cleanup via NumpunctTidy_nid_no_patch in the catch handler.
    • Verified null pointer checks across all newly added constructor, destructor, _Init, and _Tidy exports in LocaleSupport.cpp:1571-1632: each properly guards self == nullptr with APS5_INVALID_ARG_EX.
    • Verified reference count truncation and initialization in ConstructNumpunctBase and constructors (LocaleSupport.cpp:1564-1622): references is properly initialized as uint32_t and vtable points to _ZTVSt8numpunctIcE_nid_postfix[2].
    • Audited docs/dev/debt/changes/feat-numpunct-char-facet.md and test coverage in GuestNumpunctFacet.cpp and GuestLocale.cpp, confirming AGENTS.md rules compliance, absence of forbidden code comments, and full heap failure / argument validation tests.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5930349500 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21930#pullrequestreview-5930349500). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-17T00:17:59Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `2ba615ab6c`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_locale_tests`, `guest_numpunct_facet_tests` built cleanly. - **CTest** (`guest_locale`, `guest_numpunct_facet`): ``` 1/2 Test #1344: guest_numpunct_facet ............. Passed 0.00 sec 2/2 Test #1343: guest_locale ..................... Passed 0.01 sec 100% tests passed, 0 tests failed out of 2 ``` - **Negative control**: with `core/libs/prx/libc/include/Api.hpp`, `core/libs/prx/libc/include/GuestLocale.hpp`, `core/libs/prx/libc/src/LocaleSupport.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified `_ZTVSt8numpunctIcE_nid_postfix` vtable layout in `core/libs/prx/libc/src/LocaleSupport.cpp:816-828`: slots 0-1 are zero (offset-to-top, RTTI), slots 2-10 correctly map `destroy`, `deleteObject`, `retain`, `release`, and five `do_*` methods matching Dinkumware / libc ABI order. - Audited dynamic memory handling in `MakeNumpunctString` and `NumpunctInit_nid_no_patch` (`LocaleSupport.cpp:1556-1598`): verified exception safety, `std::bad_alloc` check on null allocation, and proper cleanup via `NumpunctTidy_nid_no_patch` in the catch handler. - Verified null pointer checks across all newly added constructor, destructor, `_Init`, and `_Tidy` exports in `LocaleSupport.cpp:1571-1632`: each properly guards `self == nullptr` with `APS5_INVALID_ARG_EX`. - Verified reference count truncation and initialization in `ConstructNumpunctBase` and constructors (`LocaleSupport.cpp:1564-1622`): `references` is properly initialized as `uint32_t` and `vtable` points to `_ZTVSt8numpunctIcE_nid_postfix[2]`. - Audited `docs/dev/debt/changes/feat-numpunct-char-facet.md` and test coverage in `GuestNumpunctFacet.cpp` and `GuestLocale.cpp`, confirming AGENTS.md rules compliance, absence of forbidden code comments, and full heap failure / argument validation tests. Looks Good To Me
MarcZX10 commented 2026-11-17 00:24:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T00:24:46Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected implementation and tests show no verified blocking defect; the reported build and test results were not independently run in this review.

What I ran

Read the prepared diff and review metadata for head 2ba615ab6c64b7ee46e1feb265ff45ff73a00e03, then inspected the changed implementation, declarations, and test code through repo_read.py. No build or tests were run.

Results

Check Result Note
Diff and targeted source review passed No blocking defect verified
Build and tests not run Results in the PR description are author reported

Findings

Blocking

None.

Non-blocking

None.

Not verified

No tests were run independently. The review folder lists seven changed files, all included. Read: core/libs/prx/libc/CMakeLists.txt, core/libs/prx/libc/include/GuestLocale.hpp, core/libs/prx/libc/src/LocaleSupport.cpp, and the prepared diff for core/libs/prx/libc/include/Api.hpp, core/libs/tests/GuestLocale.cpp, core/libs/tests/GuestNumpunctFacet.cpp, and docs/dev/debt/changes/feat-numpunct-char-facet.md. The full text of every changed file was not read. No files were excluded by the manifest.

To get this to a good state

Nothing is required. The build and test results reported in the description remain unverified here.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5930421602 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21930#pullrequestreview-5930421602). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T00:24:46Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected implementation and tests show no verified blocking defect; the reported build and test results were not independently run in this review. ## What I ran Read the prepared diff and review metadata for head `2ba615ab6c64b7ee46e1feb265ff45ff73a00e03`, then inspected the changed implementation, declarations, and test code through `repo_read.py`. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | No blocking defect verified | | Build and tests | not run | Results in the PR description are author reported | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No tests were run independently. The review folder lists seven changed files, all included. Read: `core/libs/prx/libc/CMakeLists.txt`, `core/libs/prx/libc/include/GuestLocale.hpp`, `core/libs/prx/libc/src/LocaleSupport.cpp`, and the prepared diff for `core/libs/prx/libc/include/Api.hpp`, `core/libs/tests/GuestLocale.cpp`, `core/libs/tests/GuestNumpunctFacet.cpp`, and `docs/dev/debt/changes/feat-numpunct-char-facet.md`. The full text of every changed file was not read. No files were excluded by the manifest. ## To get this to a good state Nothing is required. The build and test results reported in the description remain unverified here.
MarcZX10 commented 2026-11-25 17:36:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T17:36:23Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the checks reported for the exact head support merging, and the source review found no verified blocking defect.

What I ran

Reviewed head caf99e04ab9ff1499882e4fd81089a68dd660408 using repo_read.py. No build or tests were run during this review; test results below are author-reported.

Results

Check Result Note
Source review passed Changed implementation and test diff inspected
Build and tests not run Results supplied in PR description
Negative control not run Not independently verified

Findings

Blocking

None.

Non-blocking

None.

Not verified

Did not independently run the build, tests, convention checks, or negative controls, and did not inspect console behavior. Reviewed all seven files listed in manifest.json under reviewed; none were excluded by rule. Full changed-file texts were not available in the prepared review folder; inspected the relevant implementation range through repo_read.py and the changed lines in diff.patch. Other unchanged callers and contexts were not read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6062178815 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21930#pullrequestreview-6062178815). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T17:36:23Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the checks reported for the exact head support merging, and the source review found no verified blocking defect. ## What I ran Reviewed head `caf99e04ab9ff1499882e4fd81089a68dd660408` using `repo_read.py`. No build or tests were run during this review; test results below are author-reported. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Changed implementation and test diff inspected | | Build and tests | not run | Results supplied in PR description | | Negative control | not run | Not independently verified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Did not independently run the build, tests, convention checks, or negative controls, and did not inspect console behavior. Reviewed all seven files listed in `manifest.json` under `reviewed`; none were excluded by rule. Full changed-file texts were not available in the prepared review folder; inspected the relevant implementation range through `repo_read.py` and the changed lines in `diff.patch`. Other unchanged callers and contexts were not read. ## 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!21930
No description provided.