feat(libSceIcu): implement ucol_countAvailable and ucol_getAvailable #24180
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24180"
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 kessler-drift on 2026-11-20T09:19:28Z.
What
Implements
ucol_countAvailableanducol_getAvailablein libSceIcu. Both read the collation locales present in the loaded ICU data, as ICU'sucol_countAvailableanducol_getAvailabledo, and drop the stubs fromRecoveredInventory.ucol_getAvailablethrows for a negative index, sotools/progress.pystill counts it as not implemented; onlyucol_countAvailableis counted. Known gaps are indocs/dev/debt/changes/feat-libsceicu-ucol-available.md.Tested
Ubuntu 26.04 x86-64 container under Rosetta 2 on Apple silicon (Colima VM, kernel 7.0), GCC 15.2; not tested on Windows or on native x86-64. libSceIcu, its tests and
libsbuild; the libSceIcu tests and thepublic_headers, test registration and progress tests pass.python3 tools/check_conventions.py --base upstream/mainpasses.python3 tools/pr_overlap.py --branchreports no open pull request with the same exports or new files. It reports line conflicts with #23850, which removes neighbouring stubs of other exports fromRecoveredInventory.cppandRecoveredInventory.hpp; its diff leavesucol_countAvailableanducol_getAvailableunchanged, and whichever lands second needs a rebase of those two lists. It could not compare 17 open pull requests that conflict withmainand shareCMakeLists.txt,libSceIcu.hppor the inventory files (#14123, #14144, #14340, #14443, #16250, #16971, #18208, #18210, #19951, #19985, #19998, #21959, #21964, #23063, #23196, #23900 and #23917); none of their diffs adds or removes a line naming these two exports.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
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T09:25:57Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
403d1da0fc:tools/check_conventions.pypassed.guest_icu_collator_availability_testsbuilt cleanly.guest_icu_collator_availability_empty,guest_icu_collator_availability_data):core/libs/prx/libSceIcu/RecoveredInventory.cpp,core/libs/prx/libSceIcu/RecoveredInventory.hpp,core/libs/prx/libSceIcu/libSceIcu.hpp,core/libs/prx/libSceIcu/CollatorAvailability.cppreverted 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-20T09:41:56Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
403d1da0fc72c314aba0e038b6267c446447c802. I inspected the prepared diff and the changed source and test files throughrepo_read.py; no build or tests were run as part of this review.Results
Findings
Blocking
None.
Non-blocking
ucol_getAvailablecaches its first resource lookup for the process lifetime (CollatorAvailability.cpp:55-56). The tests exercise separate empty-data and data modes, but do not cover setting common data after the first call or resetting data withu_cleanup. Please confirm the intended lifecycle matches the console behavior; the debt note already records that the list remains cached across cleanup.Not verified
core/libs/prx/libSceIcu/CMakeLists.txt,core/libs/prx/libSceIcu/CollatorAvailability.cpp,core/libs/prx/libSceIcu/RecoveredInventory.cpp,core/libs/prx/libSceIcu/RecoveredInventory.hpp,core/libs/prx/libSceIcu/include/CollatorAvailability.hpp,core/libs/prx/libSceIcu/libSceIcu.hpp,core/libs/prx/libSceIcu/tests/CollatorAvailability.cpp, anddocs/dev/debt/changes/feat-libsceicu-ucol-available.md.To get this to a good state
Nothing is required. The lifecycle confirmation above is optional.