feat(libc): export the wide codecvt facet vtable as data #10180
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10180"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-23T12:06:49Z.
What
Export
codecvt<wchar_t,char,_Mbstatet>'s vtable (NIDH-TDszhsYuY) as thirteen zeroeduintptr_tslots so titles that resolve it as data get a 104-byte object matching console titlelibc.prx(PPSA26344) andlibSceLibcInternal.sprx. Facet calls through the slots still fault until methods are wired (debt note).The wide
codecvtid is already exported; this adds the matching vtable data object. Symbols are distinct from #10165 (narrowcodecvt[16]→[13]size fix, NIDaK1Ymf-NhAs) and from #9038 (_Getcatfor narrowcodecvt/numpunct/time_put). Adjacent insert points inLocaleSupport.cpp/GuestLocale.cpp/ the debt note currently conflict if the three heads are merged without an order — see Checklist.Merge / rebase order
CheckCodecvtVtableObject+ narrow debt bullet).[13]arrays (IccandIwc), both GuestLocale checks (CheckCodecvtVtableObjectthenCheckCodecvtWideVtableObject), and both debt bullets (narrow then wide)._Getcat/clogwork; itsGuestLocaleinsert sits next to the new checks — preserve the size/export checks when resolving.Not a stack on #10165's commits: Depends on stays none so either size PR can land first if the resolver follows the keep-both rule above; preferred order is still #10165 → this → #9038.
Tested
guest_locale_tests— passed (Windows MinGW):Guest locale checks passedafter addingCheckCodecvtWideVtableObject().py -3.12 tools/check_conventions.py --base upstream/main— passed.H-TDszhsYuYis STT_OBJECTst_size104 in PPSA26344sce_module/libc.prxand in/system/common/lib/libSceLibcInternal.sprx(dynsym, FTP).Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T12:42:36Z.
Review: APPROVED
Re-reviewed exact head
6224ab70b9e182e919e24a6bfbb4be421cddce87. The new checklist resolves the previously identified merge integration: preferred order is #10165 → this PR → #9038, and it explicitly preserves both narrow/wide vtable exports, tests and debt bullets. The symbol and 104-byte size evidence remain distinct from #10165 and #9038. The author reports the focusedguest_locale_testspass on Windows MinGW; conventions and diff checks pass. Hosted Ubuntu/Windows/macOS arm64/x86_64 relinker, ASAN, register-context and write-watch jobs all pass on this head; Linux/Windows product jobs are skipped by path policy.