feat(libc): implement std::collate<char>::transform #11793
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11793"
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 edubox on 2026-10-27T07:38:22Z.
What
Implement
std::collate<char>::transform(XaSxLBnqcWE), which forwards to the facet'sdo_transformand returns itsstd::stringresult, as the console'slibc.prxdoes. This was the only libc import missing from Life is Strange (PPSA28099), so the title had to keep using its ownlibc.prx.Console evidence: in the
libc.prxshipped by PPSA33016,XaSxLBnqcWEis a 0x19-byte function at 0x8b700 that loadsself->vtable, calls slot 0x28 (do_transform) with the same arguments, and returns the result pointer.Tested
guest_locale_testspasses. The new check calls the publictransformentry point on a collate facet whose vtable is installed and checks the returned string.undefined symbol: XaSxLBnqcWE. With it, the title loads, runs for 22 s and reaches the existing presentation blockercompute shader ... converted float image with 16-bit datawith no undefined symbol or loader crash.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T01:44:39Z.
Review: APPROVED
Windows 11, WinLibs GCC 15.2.0 r7, Release. Head
a9017c5515merged into upstream/main93dbd0f82a:guest_localepasses.LocaleSupport.cppandApi.hpp),GuestLocale.cppdoesn't compile (_ZNKSt7collateIcE9transformEPKcS2__nid_postfixnot declared), as expected for a new export.Checked against the layout:
GuestLocale.hpppinsCollateVtable::compareat 0x20 andhashat 0x30 withstatic_asserts, sotransformis the 0x28 slot yourlibc.prxread shows the console calling. The hidden result pointer inrdiandthisinrsimatch the Itanium ABI return ofstd::stringby value.Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T01:45:01Z.
Review: APPROVED
Duplicate of my approval above, posted twice after a GitHub API error. Please ignore this one.