feat(libSceIcu): implement ten Unicode script-property exports #16507
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16507"
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 hyvvs on 2026-11-06T23:13:07Z.
What
Replace ten throwing
libSceIcuscript-property exports with real guest-callable SysV wrappers around pinned ICU 78.1 source (Unicode 17):uscript_getScript,uscript_getShortName,uscript_hasScript,uscript_getName,uscript_getScriptExtensions,uscript_getSampleString,uscript_getUsage,uscript_isRightToLeft,uscript_breaksBetweenLettersanduscript_isCased.Source: ICU 78.1
uchar.cpp,propname.cpp,uscript_props.cpp, publicuscript.h. The wrapper forwards Unicode-property queries without synthetic tables. Script-name pointers are borrowed from native static storage; callers own sample buffers and script-extension arrays. An at-most-256-element temporary enum array avoids incompatible C++ enum pointer aliasing; error/preflight/overflow status is preserved.UBoolis a one-byte return by guest ABI. A null UErrorCode returns a safe sentinel rather than allowing upstream's fault, documented in technical debt.This is an independent script-only follow-up to #13578. Its identical ICU submodule gitlink
049e0d6a4206andicu_commonbootstrap are included so this standalone PR can be built against main; coordinate merging #13578 before landing this PR, then keep one copy of the shared infrastructure. Noucnv_*,ubrk_*oruloc_*exports are touched.Open-PR overlap audit:
python tools/pr_overlap.py --branch feat/worker16-icu-normalizationwas run against all 1,839 open PRs. It exits 2 (fail closed) because of shared ICU inventory files and broad.gitmodulesedits. I independently inspected exact open heads #14144 (f4e37256), #14340 (40f5f737) and #14443 (d61bf05d): all seven flagged overlappinguscript_*entries are still unconditionalNotImplemented_nid_no_patchstubs, not competing implementations. #13578 supplies the shared build infrastructure, and #16490 overlaps only technical-debt text. These source-level merge conflicts need coordinated integration despite zero duplicate functionaluscript_*implementations.Version/firmware limitation: The PS5 3.20 NID inventory and guest-side ICU 68 names do not prove that retail firmware uses ICU 78.1 tables. Script IDs introduced after ICU 68 can differ. The 10 signatures follow the matching public ICU C ABI, but neither console execution nor exact console Unicode/ICU version was measured. This is explicitly debt, not a claim of exact native PS5 Unicode results. NFKC normalization remains unimplemented: pinned ICU common alone reports data-file error 4 without the normalization package.
Tested
-DBUILD_TESTING=ON: builtlibSceIcu.prxand independently linkedguest_icu_script_tests.exe;ctest --test-dir build-worker16/windows-release -R '^guest_icu_script$' -C Release --output-on-failure: 1/1 passed.-O1 -g -DNDEBUG -fsanitize=address,undefined -fno-omit-frame-pointer,ASAN_OPTIONS=detect_leaks=1:halt_on_error=1 UBSAN_OPTIONS=halt_on_error=1: focused shared-library guest CTest 1/1 passed.python tools/check_conventions.py --base HEAD^passes,git diff HEAD^ HEAD --checkpasses.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)Pull request closed