feat(libc): implement wide numpunct members #17765
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17765"
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 B-Howell on 2026-11-09T15:05:35Z.
What
Implements the ten existing
std::numpunct<wchar_t>member exports inlibSceLibcInternal: eight mangled member providers and two existing pending-NID aliases. The typeddo_methods read the existing wide facet fields and use the existing libc string-assignment helpers; the public methods dispatch through the facet vtable so derived facets retain their overrides. The guest facet layout is unchanged. Constructors, destructors,_Init, and_Tidyremain throwing and are recorded in technical debt because their guest construction/layout behavior is not established.On the measured
main/merge-preview pair6b58dfa4/139c4b06,tools/progress.pymoves from 13,544/38,634 (35.06%) to 13,554/38,634 (35.08%): ten existinglibSceLibcInternalstubs are implemented, with no new throwing exports. The overlap check covered 1,952 open PRs. Manual comparison of the 13 shared-file warnings found no competing implementation. #17300 renames the still-throwingdo_groupingprovider. If it merges first, replace that throw and keep one provider for2BmJdX269kI. #17628 adds declarations for separate money facets at the same location inApi.hpp. Keep both declaration groups when merging the second PR.Tested
Windows 11 (WinLibs GCC 15.2.0, Release): baseline RED control confirmed all ten expected throws. Candidate GREEN at
954ab82ba9eceb7ff3ca1785d675be0be62117f9: all three focused tests passed 3/3 each, and public headers passed 65/65.WSL Ubuntu 22.04 (GCC 11.4.0, Release): baseline RED control confirmed all ten expected throws. Candidate GREEN at
954ab82ba9eceb7ff3ca1785d675be0be62117f9: all three focused tests passed 3/3 each, and public headers passed 65/65.The candidate test matrix was
guest_libc_internal_wide_numpunct,guest_libc_internal_numpunct, andguest_locale, each repeated three times, plus all 65public_headerstests on each host.tools/check_conventions.py --base origin/mainpassed. No title or GPU testing was run.Main merge
012ebb93ae2485d85589fb080c95c4f9220e6130(parents954ab82band mainc85dcfd0; the only conflict,libSceLibcInternal/include/Api.hpp, keeps both the wide numpunct and main's money_get/money_put declarations), WSL Ubuntu 22.04 (GCC 11.4.0, Release): all three focused tests passed 3/3 each, and public headers passed 65/65.tools/check_conventions.py --base origin/mainpassed.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 Codex