refactor(libSceIcu): name 1695 legacy exports from ICU 68 symbols #14016
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14016"
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 PrivacyOnion on 2026-10-31T15:58:59Z.
What
Names 1695 libSceIcu 3.20 placeholders after ICU 68 symbols. Every stub still throws through
NotImplemented_nid_no_patch; no behaviour changes.libicuuc,libicui18norlibicuiofrom the ICU 68.2 Ubuntu 20.04 release build (12353 symbols). The_68renaming suffix is stripped from C names, and thetools/nid_names.pyhash of each name equals the 3.20 NID.sceIcuLegacyUnknown_*stubs inLegacyExports.cppnow use those names: 1293 C++ names in theicu_68namespace (UnicodeString,UnicodeSet,Locale,Normalizer2,BreakIterator,ResourceBundle, …) and 398 C names (ucnv_*,uprv_*,uhash_*,ures_*,uloc_*,utext_*,udata_*,ucase_*,utrie2_*,ucptrie_*, …).sceIcuDispatchUnknown_*stubs inExport.cppareBreakIterator::createCharacterInstance,createWordInstance,createLineInstanceandcreateSentenceInstance. The selectors 0–3 recorded in the debt are theUBreakIteratorTypevalues those factories pass tocreateInstance.APS5_EXPORTand become<symbol>_nid_postfix. The exported NID set of libSceIcu is unchanged: 2474 NIDs before and after, with no duplicates.u_strstr,u_cleanup,u_setMemoryFunctions,uprv_free,utrie_swapand others. 652 legacy NIDs match no ICU 68.2 symbol and stay unknown.docs/dev/debt/libSceIcu.mdis updated for both sections.Tested
Windows 11, MinGW 13.1 (no title run, stubs only).
LegacyExports.cppandExport.cppcompile to objects with the realAPS5_VABIand the CI flags.APS5_EXPORTNIDs plus hashed_nid_postfixnames), is identical onmainand on this branch.python tools/check_conventions.py --base upstream/mainpasses.python core/libs/tests/test_public_headers.py --audit-onlypasses.tools/pr_overlap.pylists only shared files. Diffs of every listed PR were checked for these NIDs and names; the 24 overlapping ones are excluded.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 MarcZX10 on 2026-10-31T16:25:08Z.
Review: APPROVED
Reviewed — looks good
The 1,695 renamed exports preserve the existing NID set and map to ICU 68.2 library symbols; the implementations remain explicit unimplemented stubs.
What I ran
Reviewed head
c516806ab7a47e154b3d9c229688fe70a39ef173against base474030e58424fefdb65e5df9f3820810fbb4553c; the base is an ancestor of the head and the merge preview is clean. Local environment: Debian GNU/Linux 12, Python 3.11.2, GCC 12.2.0. No local project build or compilation was run.Results
_68suffixexport-removedwarnings because it compares old placeholder names to new names; the independent NID-set comparison shows these are renames, not removed NIDslibSceIcu.prx; selected tests passed: 2,523/2,523Unedited result output
Sources
NotImplemented_nid_no_patchat headc516806ac516806a474030e584e1f26eand the versioned ICU 68.2 Ubuntu 20.04 release assetNot verified
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-31T19:33:29Z.
Review: APPROVED
Reviewed
c516806ab7a47e154b3d9c229688fe70a39ef173against474030e58424fefdb65e5df9f3820810fbb4553c. No actionable issue found in this stub-renaming change. Independently recomputed the complete ICU export inventory: 2,474 unique NIDs before and after, no duplicates or additions/removals. All 1,695 renames retain the same NIDs and throwing bodies; the other parsed function bodies are unchanged.Windows/MSYS2 GCC 16.2 Release: built the library and passed all eight registered ICU suites in an isolated DLL-linked harness with minimal libc support. Hosted Windows compiled the library and reported 2,523/2,523 selected tests passing on a merge containing this head. Whitespace passes. I did not complete an independent symbol-table comparison against the official ICU binary archive; no implementation or console ABI validation is inferred from the recovered names.