feat(libSceLibcInternal): implement std::numpunct<char> constructors and deleting destructor #28312
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28312"
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 paulk161 on 2026-11-29T23:42:05Z.
What
_ZNSt8numpunctIcEC1EPKcmb(WK24j1F3rCU),_ZNSt8numpunctIcEC2ERKSt8_Locinfomb(Cb1hI+w9nyU), and_ZNSt8numpunctIcED0Ev(Lf6h5krl2fA) inlibSceLibcInternalby delegating to the existinglibchelpers (NumpunctConstructNamed_nid_no_patch,NumpunctConstructFromLocinfo_nid_no_patch, andNumpunctDelete_nid_no_patch).InventoryExports6.hppandInventoryExports6.cppwith typed signatures and implementations inNumpunct.cpp.GuestLibcInternalNumpuncttests to cover named and_Locinfoconstruction (isDefaulttrue/false), deleting destruction, error handling on null/unsupported locales, and heap allocation balance.docs/dev/debt/changes/feat-libcinternal-numpunct-char-ctors.md.Tested
libSceLibcInternalandguest_libc_internal_numpunct_tests, ranctest -R "guest_libc_internal_numpunct|public_headers",python3 tools/debt_fold.py --check,python3 tools/check_conventions.py, andpython3 tools/pr_overlap.py --branch feat/libcinternal-numpunct-char-ctors.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
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-29T23:43:43Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
0e8fcbf73d:tools/check_conventions.pyfailed.guest_libc_internal_numpunct_testsbuilt cleanly.guest_libc_internal_numpunct):Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-29T23:48:24Z.
Review: COMMENTED
Architecture findings (1)
Advisory architecture findings (1)
739d5146-5a8d-45c9-9089-d1fee5e7b0bdReviewing files that changed from the base of the PR and between
265dbcfee7and0e8fcbf73d.core/libs/prx/libSceLibcInternal/InventoryExports6.cppcore/libs/prx/libSceLibcInternal/Numpunct.cppcore/libs/prx/libSceLibcInternal/include/InventoryExports6.hppcore/libs/tests/GuestLibcInternalNumpunct.cppdocs/dev/debt/changes/feat-libcinternal-numpunct-char-ctors.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-29T23:50:03Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
cda0b1a1fc:tools/check_conventions.pypassed.guest_libc_internal_numpunct_testsbuilt cleanly.guest_libc_internal_numpunct):core/libs/prx/libSceLibcInternal/InventoryExports6.cpp,core/libs/prx/libSceLibcInternal/Numpunct.cpp,core/libs/prx/libSceLibcInternal/include/InventoryExports6.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T00:37:26Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: make the
_Locinfoconstructor initialize the facet from the supplied locale information.What I ran
Reviewed head
cda0b1a1fcb980e9bc37addd30ed4495f3d51212, basemain. I read the prepared description, commits, diff, manifest, and all five changed files. I also read the delegated libc helper implementation. No commands or tests were run; the Windows test and check runs are author-reported.Results
Findings
Blocking
core/libs/prx/libSceLibcInternal/Numpunct.cpp:29: The new_Locinfoconstructor forwardslocinfotoNumpunctConstructFromLocinfo_nid_no_patch, but that helper'sNumpunctInit_nid_no_patchignores its locale-info argument and obtains punctuation fromlocaleconv_nid_postfix()instead. Thus the newly exposed constructor does not initialize from the locale information it receives. Update the implementation path to use the supplied locale data, and cover it with a non-Clocale test.Non-blocking
None.
Sources
Not verified
Builds, tests, and other checks described by the author were not run independently. No changed files were excluded from the prepared bundle; all five changed files were read.
To get this to a good state
Use the supplied
locinfowhen initializing_Locinfoconstruction, add a test proving a non-Clocale affects the facet, and rerun the reported build and checks on the updated head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T18:46:49Z.
Review: APPROVED
Reviewed — looks good
The three requested
numpunct<char>symbols delegate to the existing libc helpers, and the reviewed changes show no blocking defect.What I ran
Reviewed head
a54ef557225a41de93d5ff0ba80928900e98e286against basemain. I inspected the prepared diff and usedrepo_read.pyto readLocaleSupport.cpplines 2380–2470 and search for the delegated helper symbols. No tests or builds were run; the Windows checks in the PR description are author-reported.Results
Negative control
Not run; no tests were run in this review.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
Tests and builds were not run here. I reviewed all seven files listed under
reviewedinfiles.json; that manifest lists no excluded files. Console behavior and other platforms were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T06:11:33Z.
Review: COMMENTED
Built the merge with current main
4d6e4f058dand ranguest_libc_internal_numpunctandguest_numpunct_faceton Linux. Both passed, covering the named and locinfo constructors, both default modes, the deleting destructor, and rejection of null locinfo before changing the facet.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T12:36:24Z.
Review: APPROVED
I read the diff at
a54ef55722. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), merged intomainatdaa61711afetogether with other open PRs (so not an isolated build).guest_libc_internal_numpunctandguest_numpunct_facet: pass on both.guest_numpunct_facetfails;guest_libc_internal_numpunctdoes not compile, because it calls the new exports.Not checked: a console or 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.