feat(libc): expose libc++ base streambuf locale hook and RTTI #28657
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28657"
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 mihai1859 on 2026-12-02T15:37:42Z.
What
Expose the narrow libc++ base stream buffer’s locale-change hook and its class type information. The PS5 Payload SDK v0.42 leaves the base hook empty. The exported RTTI uses the SDK’s two-pointer layout and points to the Itanium class-type vtable.
Tested
guest_libc_static_importspassed. It checks that calling the base hook preserves the stream and locale, and that the RTTI has the expected type name and class-type vtable.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)Summary by CodeRabbit
basic_streambuf<char>locale handling and type information, improving compatibility with software that uses these stream-buffer features.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T15:42:32Z.
Review: APPROVED
Reviewed — looks good
The change exposes the requested libc++ streambuf locale hook and class RTTI, and the inspected code supports the stated ABI behavior.
What I ran
Inspected the prepared description, commits, manifest, diff, and relevant ranges from all six included changed files at head
c82f99e02ccd985aea3ad4a67a0c712c0aa88b91. No tests or build checks were run.Results
Negative control
Not run; no source mutation or test execution was performed.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The author-reported Windows test, firmware provider behavior, and full title execution were not independently verified.
files.jsonlists no excluded files. The reviewed files werecore/libs/prx/libc/include/Api.hpp,core/libs/prx/libc/src/LibcxxLocaleFacet.cpp,core/libs/prx/libc/src/exception/StandardExceptions.cpp,core/libs/prx/libc/src/exception/TypeInfo.cpp,core/libs/tests/GuestLibcStaticImports.cpp, anddocs/dev/debt/changes/feat-libc-streambuf-metadata.md.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T01:04:24Z.
Review: COMMENTED
I built and linked the production locale-facet, type-info, and exception sources from
c82f99e0with GCC 14.2 on Linux and ran a standalone driver against both new exports. The locale hook left the stream buffer and supplied locale unchanged. The exported RTTI had the expected mangled name and its vtable address point led to the Itanium__class_type_infometatype. The driver linked the repository's runtime implementations for these checks.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T07:34:58Z.
Review: APPROVED
I read the diff at
c82f99e02c. Merged intomainat35e34b1a7f0together with other open PRs (so not an isolated build), Release, on Windows 11 (GCC 15.2) and Ubuntu 24.04 under WSL2 (GCC 13.3).guest_libc_static_imports: passes on both.guest_libcxx_*tests of that tree pass too (39 on Linux).maindoes not have.Not checked: a title.
AI-assisted: yes (Claude Code)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.