feat(libSceLibcInternal): implement wide ctype do_scan_is #25111
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25111"
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 pinewhite on 2026-11-21T16:50:56Z.
What
Implement
std::ctype<wchar_t>::do_scan_isinlibSceLibcInternal(NIDpSQz254t3ug). The previous export threw on every call. The implementation returns the first wide character matching the supplied mask, or the end pointer. It follows the Dinkumware scan contract and shares the existingdo_scan_notrange walk and guest virtualdo_isdispatch. The guest argument types come from the catalogued mangled name.Tested
Ubuntu 24.04 ARM64, GCC 13.3. Ran the repository's
GuestLibcInternalWideCtype.cpptest in a source-linked executable with the real libc guest-copy implementation. The same test linked to the baseline NID's stub stopped withsceLibcInternalUnknown_pSQz254t3ug_nid_no_patch not implemented. With the implementation it returned 0. The new cases cover an overriddendo_is, first matching element, zero mask, and empty range. The existing wide ctype cases, includingdo_scan_not, also passed.nmconfirmed the original NID aliases the new implementation. No full project build, PS5 firmware execution or game run was performed.tools/progress.py --module libSceLibcInternalon the base and this branch shows 664/1124 → 665/1124 implemented exports. The inventory size is unchanged.tools/check_conventions.py,core/libs/tests/test_public_headers.py --audit-only, andgit diff --check origin/main HEADpassed.Targeted searches for the NID and unversioned export did not find a competing implementation. #16560 changes
libc's separatestd::__sce_v2exports. The repository-wide branch overlap check timed out after enumerating 2,232 open pull requests.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 PrivacyOnion on 2026-11-21T17:19:35Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
0c0682c645:tools/check_conventions.pypassed.guest_libc_internal_wide_ctype_testsbuilt cleanly.guest_libc_internal_wide_ctype):core/libs/prx/libSceLibcInternal/InventoryExports2.cpp,core/libs/prx/libSceLibcInternal/WideCtype.cpp,core/libs/prx/libSceLibcInternal/include/Api.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-22T23:47:07Z.
Review: APPROVED
Reviewed — looks good
The reviewed change implements the wide
do_scan_isexport and updates its tests and technical debt record; no blocking defect was found in the changed code inspected.What I ran
Inspected the prepared diff and changed source files at head
0c0682c6450903e13a59252e494c5282e69ce030using the review reader. No tests or build commands were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The PR description and diff were read, along with all five changed files listed in the manifest:
InventoryExports2.cpp,WideCtype.cpp,Api.hpp,GuestLibcInternalWideCtype.cpp, andlibSceLibcInternal.md. No files were excluded in the manifest. The claimed test runs, convention checks, progress comparison, and diff check were not run independently; full project build, PS5 firmware execution, and game behavior remain unverified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T07:33:24Z.
Review: APPROVED
Reviewed — looks good
The implementation follows the existing checked range traversal and virtual
do_isdispatch, and the inspected tests cover first match, no match, and empty range.What I ran
Reviewed head
60c88b83e5749fdf6d15d9aa6328115312c9ab57and the prepared diff using the pinnedrepo_read.pyreader. No tests or builds were run during this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author-reported test run, build, export alias check, and convention checks were not independently run. No files were excluded according to the manifest; all five changed files marked
includedwere read. Nofiles.jsonwas available through the reader, so excluded-by-rule details are not verified.To get this to a good state
Nothing is required.