feat(libSceLibcInternal): implement std::_Mpunct virtuals #28907
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28907"
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 NobleBrains on 2026-12-04T15:05:42Z.
What
The 18
std::_Mpunct<char>andstd::_Mpunct<wchar_t>do_*virtuals in libSceLibcInternal threwNotImplemented. They now return the values from the facet layout of microsoft/STLxlocmonandSceV2MoneypunctFacet, reading the facet throughGuestCopyIn_nid_no_patch. The old stubs are removed fromErr.cppandInventoryExports2.cpp, and the functions live in a newMpunct.cpp.Four open PRs (#17746, #25573, #27885, #28568) touch the same files (
CMakeLists.txt,Err.cpp,InventoryExports2.cpp);pr_overlap.py --namesfinds none of them implementing these functions.Tested
On Linux x86_64 (Release, container),
ctest -R 'guest_libc_internal_(mpunct|numpunct|wide_numpunct)$': 3/3 passed.check_conventions.pyanddebt_fold.py --checkpass.Not run: Windows, macOS, a counter-test with the source change reverted, and any title.
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)🤖 Generated with Claude Code
Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-04T15:13:07Z.
Review: COMMENTED
Actionable comments
5412d712-8410-4e62-9795-980295ffaef4Reviewing files that changed from the base of the PR and between
7e4db5636eandfd6369c84b.core/libs/prx/libSceLibcInternal/CMakeLists.txtcore/libs/prx/libSceLibcInternal/Err.cppcore/libs/prx/libSceLibcInternal/InventoryExports2.cppcore/libs/prx/libSceLibcInternal/Mpunct.cppcore/libs/tests/GuestLibcInternalMpunct.cppdocs/dev/debt/changes/feat-libcinternal-mpunct-virtuals.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-04T15:47:35Z.
Review: APPROVED
Verified head
fd6369c84bon Windows 11 with GCC 15.2, applied to main484b0368d3. This covers the Windows run and the counter-test listed under Not run.guest_libc_internal_mpunct,guest_libc_internal_numpunctandguest_libc_internal_wide_numpunct: 3 of 3 pass. On main the two numpunct tests pass too.Mpunct.cppfromtarget_sources, and restored theNotImplementedstubs inErr.cppandInventoryExports2.cpp.guest_libc_internal_mpunctthen fails with an unhandledruntime_error; the numpunct tests still pass.The
MpunctFacetoffsets match the existingSceV2MoneypunctFacetinlibc/src/LocaleSupport.cpp(grouping0x10,thousandsSep0x19 or 0x1a,fractionDigits0x38,international0x44).do_groupingforwchar_tcorrectly returns a narrow string.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T15:56:31Z.
Review: APPROVED
Reviewed — looks good
Nothing in the reviewed change blocks merge; no optional points remain.
What I ran
Reviewed head
946a895048604aa85479d70df350146016b79b1fusingrepo_read.pyand the prepared diff. I did not run tests or builds.Results
Negative control
Could not run a negative control because I did not run the tests.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
Tests on Windows or macOS, behavior on console hardware, and behavior in any title were not verified. The author-reported test results were not independently run. Read all 8 files listed under
reviewedinfiles.json; none were excluded.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-04T16:05:14Z.
Review: APPROVED
Re-verified head
946a895048on Windows 11 with GCC 15.2, applied to main484b0368d3. The new commit only drops the oldint f()declarations of the 18_Mpunctvirtuals fromErrExports.hppandInventoryExports2.hpp.libSceLibcInternaland the test targets build after a reconfigure.guest_libc_internal_mpunct,guest_libc_internal_numpunctandguest_libc_internal_wide_numpunct: 3 of 3 pass. The two numpunct tests also pass on main.The negative control from my earlier review was not repeated on this head.
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.