feat(libSceIcu): implement uloc_getParent and the ISO code locale exports #20996
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20996"
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 KSonny4 on 2026-11-15T19:05:30Z.
What
Implements five
libSceIcuexports from ICU 68.2uloc.cpp(84e1f26):uloc_getParent,uloc_getISO3Language,uloc_getISO3Country,uloc_getISOLanguagesanduloc_getISOCountries. Before this change, they threw through parameterless legacy stubs.uloc_getParentcuts the ID at the last_and applies theund_shift, with theu_terminateCharsstatus rules.uloc_getISOLanguagesanduloc_getISOCountriesreturn theLANGUAGESandCOUNTRIEStables, copied verbatim from ICU 68.2.NotImplemented_nid_no_patch, becauseuloc_getDefaultis not implemented. The debt fragment records this.Overlap:
tools/pr_overlap.pyshows that #14340 and #14443 also add these five exports. Both PRs add about 450 ICU exports each, and both conflict withmainnow. This PR is small and has no conflicts, so it can merge first. Then #14340 and #14443 can drop these five functions when they rebase. If their author wants their version first, I will close this PR.Tested
Linux (WSL2, Ubuntu), Release build. Not tested on a title or on PS5 hardware.
ctest --test-dir build -R guest_icu_locale_core: 1 of 1 passed. The new cases cover parent IDs, buffer capacities and status codes, ISO3 lookups with obsolete codes, and every entry of both ISO tables.ctest --test-dir build -R icu(before the rebase on currentmain): 48 of 49 passed.guest_icu_recovered_signaturesdoes not link, becauseGuestPointers::Run()is defined twice, intests/DateFormat.cppand intests/RelativeDateTimeFormatter.cpp. This PR does not change these files.python3 tools/check_conventions.py --base origin/main: 0 errors.Checklist
main; no other open PR implements the same functions (exception: #14340 and #14443 also add these five exports, see What)NotImplemented_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